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 TokensFactorgetInstance()Returns aTokensFactorinstance.MultiFactorTypegetType()Returns the type associated with this multi-factor instance.org.ldaptive.CredentialgetValue(org.ldaptive.Credential credentials)Returns the processedCredentialby this factor.
-
-
-
Method Detail
-
getValue
public org.ldaptive.Credential getValue(org.ldaptive.Credential credentials)
Description copied from interface:MultiFactorReturns the processedCredentialby this factor.- Specified by:
getValuein interfaceMultiFactor- Parameters:
credentials-Credentialto derive from- Returns:
- Generated value
-
getType
public MultiFactorType getType()
Description copied from interface:MultiFactorReturns the type associated with this multi-factor instance.- Specified by:
getTypein interfaceMultiFactor- Returns:
MultiFactorType
-
getInstance
public static TokensFactor getInstance()
Returns aTokensFactorinstance.- Returns:
TokensFactorinstance.
-
-