Package edu.vt.middleware.ldap.ed
Interface MultiFactor
-
- All Known Implementing Classes:
DuoFactor
,TokensFactor
public interface MultiFactor
Represents 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 MultiFactor
getInstance(MultiFactorType type, String mfaVal)
Returns an instance of known sub-types (see:MultiFactorType
).MultiFactorType
getType()
Returns the type associated with this multi-factor instance.org.ldaptive.Credential
getValue(org.ldaptive.Credential credential)
Returns the processedCredential
by this factor.
-
-
-
Method Detail
-
getValue
org.ldaptive.Credential getValue(org.ldaptive.Credential credential)
Returns the processedCredential
by this factor.- Parameters:
credential
-Credential
to 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
-MultiFactorType
type ofMultiFactor
mfaVal
-EdCli.MFA_VALUE_OPTION
- Returns:
- Appropriate instance with the type, will throw
IllegalArgumentException
if none matches
-
-