Package edu.vt.middleware.ldap.ed
Interface MultiFactor
-
- All Known Implementing Classes:
DuoFactor,TokensFactor
public interface MultiFactorRepresents a multi-factor authentication data to present to an ldap instance.- Author:
- Middleware Services
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static MultiFactorgetInstance(MultiFactorType type, String mfaVal)Returns an instance of known sub-types (see:MultiFactorType).MultiFactorTypegetType()Returns the type associated with this multi-factor instance.org.ldaptive.CredentialgetValue(org.ldaptive.Credential credential)Returns the processedCredentialby this factor.
-
-
-
Method Detail
-
getValue
org.ldaptive.Credential getValue(org.ldaptive.Credential credential)
Returns the processedCredentialby this factor.- Parameters:
credential-Credentialto derive from- Returns:
- Generated value
-
getType
MultiFactorType getType()
Returns the type associated with this multi-factor instance.- Returns:
MultiFactorType
-
getInstance
static MultiFactor getInstance(MultiFactorType type, String mfaVal)
Returns an instance of known sub-types (see:MultiFactorType). This is a convenience method which returns the appropriate implementation with the specified type.- Parameters:
type-MultiFactorTypetype ofMultiFactormfaVal-EdCli.MFA_VALUE_OPTION- Returns:
- Appropriate instance with the type, will throw
IllegalArgumentExceptionif none matches
-
-