Class DefaultCredential
- java.lang.Object
-
- nl.esciencecenter.xenon.credentials.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.
-
-
Constructor Summary
Constructors Constructor Description DefaultCredential()
DefaultCredential(java.lang.String username)
-
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()
-
-
-
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 interfaceUserCredential
- Returns:
- the user name associated with this credential.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-