Interface CredentialMetaData

  • All Superinterfaces:
    java.io.Serializable

    public interface CredentialMetaData
    extends java.io.Serializable
    Describes 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 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