org.picketlink.idm.credential.handler
@SupportsCredentials(credentialClass={TOTPCredentials.class,TOTPCredential.class}, credentialStorage=OTPCredentialStorage.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 |
ALGORITHM_RANDOM_NUMBER, KEY_LENGTH_RANDOM_NUMBER, PASSWORD_ENCODER, RENEW_RANDOM_NUMBER_GENERATOR_INTERVAL, SECURE_RANDOM_PROVIDER
LOGIN_NAME_PROPERTY, SUPPORTED_ACCOUNT_TYPES_PROPERTY
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, getCredentialStorage, getSecureRandomProvider, validateCredential
getAccount, getIdentityManager, isDebugEnabled
public 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 AbstractCredentialHandler<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 © 2014 JBoss by Red Hat. All Rights Reserved.