Interface Credential


  • public interface Credential
    The Credential interface represents the abstract notion of a credential, which is a piece of security information that can be used to confirm the identity of an entity, such as an individual, a corporation, a login id, etc.
    Author:
    Marcus Portmann
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean equals​(Object another)
      The equals method checks if the specified object is the same credential as this object.
      int hashCode()
      The hashCode method returns an integer hash code to represent this credential.
      String toString()
      Returns a string representation of this credential.
    • Method Detail

      • equals

        boolean equals​(Object another)
        The equals method checks if the specified object is the same credential as this object.
        Overrides:
        equals in class Object
        Parameters:
        another - the credential to compare with
        Returns:
        true if the object passed in matches the credential represented by the implementation of this interface
      • hashCode

        int hashCode()
        The hashCode method returns an integer hash code to represent this credential. It can be used to test for non-equality, or as an index key in a hash table.
        Overrides:
        hashCode in class Object
        Returns:
        an integer hash code representing the credential
      • toString

        String toString()
        Returns a string representation of this credential.
        Overrides:
        toString in class Object
        Returns:
        a string representation of this credential