Package org.apereo.cas.authentication
Interface CredentialMetaData
-
- All Superinterfaces:
java.io.Serializable
public interface CredentialMetaData extends java.io.SerializableDescribes a credential provided for authentication. Implementations should expect instances of this type to be stored for periods of time equal to the length of the SSO session or longer, which necessitates consideration of serialization and security. All implementations MUST be serializable and secure with respect to long-term storage.- Since:
- 4.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<? extends Credential>getCredentialClass()Gets the type of the original credential.java.lang.StringgetId()Gets a unique identifier for the kind of credential this represents.CredentialtoCredential()Reconstruct the credential from metadata.
-
-
-
Method Detail
-
getId
java.lang.String getId()
Gets a unique identifier for the kind of credential this represents.- Returns:
- Unique identifier for the given type of credential.
-
getCredentialClass
java.lang.Class<? extends Credential> getCredentialClass()
Gets the type of the original credential.- Returns:
- Non -null credential class.
-
toCredential
Credential toCredential()
Reconstruct the credential from metadata.- Returns:
- the credential
-
-