Package edu.vt.middleware.ldap.ed
Class TokensFactor
- java.lang.Object
-
- edu.vt.middleware.ldap.ed.TokensFactor
-
- All Implemented Interfaces:
MultiFactor
public class TokensFactor extends Object implements MultiFactor
Represents a second factor to present to login.directory.vt.edu from ED Web Services /tokens endpoint. (see: Web Services Documentation) section: Token Operations- Author:
- Middleware Services
-
-
Constructor Summary
Constructors Constructor Description TokensFactor()
Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TokensFactor
getInstance()
Returns aTokensFactor
instance.MultiFactorType
getType()
Returns the type associated with this multi-factor instance.org.ldaptive.Credential
getValue(org.ldaptive.Credential credentials)
Returns the processedCredential
by this factor.
-
-
-
Method Detail
-
getValue
public org.ldaptive.Credential getValue(org.ldaptive.Credential credentials)
Description copied from interface:MultiFactor
Returns the processedCredential
by this factor.- Specified by:
getValue
in interfaceMultiFactor
- Parameters:
credentials
-Credential
to derive from- Returns:
- Generated value
-
getType
public MultiFactorType getType()
Description copied from interface:MultiFactor
Returns the type associated with this multi-factor instance.- Specified by:
getType
in interfaceMultiFactor
- Returns:
MultiFactorType
-
getInstance
public static TokensFactor getInstance()
Returns aTokensFactor
instance.- Returns:
TokensFactor
instance.
-
-