Package org.apereo.cas.authentication
Class OneTimePasswordCredential
- java.lang.Object
-
- org.apereo.cas.authentication.AbstractCredential
-
- org.apereo.cas.authentication.BasicIdentifiableCredential
-
- org.apereo.cas.authentication.OneTimePasswordCredential
-
- All Implemented Interfaces:
java.io.Serializable,org.apereo.cas.authentication.Credential,org.apereo.cas.authentication.CredentialMetaData
public class OneTimePasswordCredential extends BasicIdentifiableCredential
Describes a one-time-password credential that contains an optional unique identifier and required password. The primary difference between this component andUsernamePasswordCredentialis that the username/ID is optional in the former and requisite in the latter.This class implements
CredentialMetaDatasince the one-time-password is safe for long-term storage after authentication. Note that metadata is stored only _after_ authentication, at which time the OTP has already been consumed and by definition is no longer useful for authentication.- Since:
- 4.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OneTimePasswordCredential(java.lang.String id, java.lang.String password)
-
Method Summary
-
Methods inherited from class org.apereo.cas.authentication.AbstractCredential
equals, getCredentialClass, hashCode, isValid, validate
-
-