@SupportsCredentials(value={TOTPCredentials.class,TOTPCredential.class}) public class TOTPCredentialHandler extends PasswordCredentialHandler<CredentialStore<?>,TOTPCredentials,TOTPCredential>
This particular implementation supports the validation of TOTPCredentials, and updating TOTPCredential
credentials.
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM |
static String |
DEFAULT_DEVICE |
static String |
DELAY_WINDOW |
static String |
INTERVAL_SECONDS |
static String |
NUMBER_DIGITS |
PASSWORD_ENCODER| Constructor and Description |
|---|
TOTPCredentialHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
setup(CredentialStore<?> store) |
void |
update(IdentityContext context,
Account account,
TOTPCredential credential,
CredentialStore<?> store,
Date effectiveDate,
Date expiryDate) |
void |
validate(IdentityContext context,
TOTPCredentials credentials,
CredentialStore<?> store) |
getAccount, getIdentityManagerpublic static final String ALGORITHM
public static final String INTERVAL_SECONDS
public static final String NUMBER_DIGITS
public static final String DELAY_WINDOW
public static final String DEFAULT_DEVICE
public void setup(CredentialStore<?> store)
setup in interface CredentialHandler<CredentialStore<?>,TOTPCredentials,TOTPCredential>setup in class PasswordCredentialHandler<CredentialStore<?>,TOTPCredentials,TOTPCredential>public void validate(IdentityContext context, TOTPCredentials credentials, CredentialStore<?> store)
validate in interface CredentialHandler<CredentialStore<?>,TOTPCredentials,TOTPCredential>validate in class PasswordCredentialHandler<CredentialStore<?>,TOTPCredentials,TOTPCredential>public void update(IdentityContext context, Account account, TOTPCredential credential, CredentialStore<?> store, Date effectiveDate, Date expiryDate)
update in interface CredentialHandler<CredentialStore<?>,TOTPCredentials,TOTPCredential>update in class PasswordCredentialHandler<CredentialStore<?>,TOTPCredentials,TOTPCredential>Copyright © 2013. All Rights Reserved.