Class DefaultCredential

  • All Implemented Interfaces:
    Credential, UserCredential

    public class DefaultCredential
    extends java.lang.Object
    implements UserCredential
    This class represents the default credential that may be used by the various adaptors. It mainly serves as a placeholder to indicate that the adaptor must revert to whatever default behavior it defines.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getUsername()
      Returns the user name associated with this credential.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultCredential

        public DefaultCredential()
      • DefaultCredential

        public DefaultCredential​(java.lang.String username)
    • Method Detail

      • getUsername

        public java.lang.String getUsername()
        Description copied from interface: UserCredential
        Returns the user name associated with this credential.
        Specified by:
        getUsername in interface UserCredential
        Returns:
        the user name associated with this credential.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object