@SupportsCredentials(value={org.picketlink.idm.credential.TOTPCredentials.class,org.picketlink.idm.credential.TOTPCredential.class})
public class TOTPCredentialHandler
extends PasswordCredentialHandler<org.picketlink.idm.spi.CredentialStore<?>,org.picketlink.idm.credential.TOTPCredentials,org.picketlink.idm.credential.TOTPCredential>
This particular implementation supports the validation of UsernamePasswordCredentials, and updating Password
credentials.
How passwords are encoded can be changed by specifying a configuration option using the PASSWORD_ENCODER. By
default a SHA-512 encoding is performed.
Password are always salted before encoding.
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM |
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(org.picketlink.idm.spi.CredentialStore<?> store) |
void |
update(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.Agent agent,
org.picketlink.idm.credential.TOTPCredential password,
org.picketlink.idm.spi.CredentialStore<?> store,
Date effectiveDate,
Date expiryDate) |
void |
validate(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.credential.TOTPCredentials credentials,
org.picketlink.idm.spi.CredentialStore<?> store) |
public static final String ALGORITHM
public static final String INTERVAL_SECONDS
public static final String NUMBER_DIGITS
public static final String DELAY_WINDOW
public void setup(org.picketlink.idm.spi.CredentialStore<?> store)
setup in interface org.picketlink.idm.credential.spi.CredentialHandler<org.picketlink.idm.spi.CredentialStore<?>,org.picketlink.idm.credential.TOTPCredentials,org.picketlink.idm.credential.TOTPCredential>setup in class PasswordCredentialHandler<org.picketlink.idm.spi.CredentialStore<?>,org.picketlink.idm.credential.TOTPCredentials,org.picketlink.idm.credential.TOTPCredential>public void validate(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.credential.TOTPCredentials credentials,
org.picketlink.idm.spi.CredentialStore<?> store)
validate in interface org.picketlink.idm.credential.spi.CredentialHandler<org.picketlink.idm.spi.CredentialStore<?>,org.picketlink.idm.credential.TOTPCredentials,org.picketlink.idm.credential.TOTPCredential>validate in class PasswordCredentialHandler<org.picketlink.idm.spi.CredentialStore<?>,org.picketlink.idm.credential.TOTPCredentials,org.picketlink.idm.credential.TOTPCredential>public void update(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.Agent agent,
org.picketlink.idm.credential.TOTPCredential password,
org.picketlink.idm.spi.CredentialStore<?> store,
Date effectiveDate,
Date expiryDate)
update in interface org.picketlink.idm.credential.spi.CredentialHandler<org.picketlink.idm.spi.CredentialStore<?>,org.picketlink.idm.credential.TOTPCredentials,org.picketlink.idm.credential.TOTPCredential>update in class PasswordCredentialHandler<org.picketlink.idm.spi.CredentialStore<?>,org.picketlink.idm.credential.TOTPCredentials,org.picketlink.idm.credential.TOTPCredential>Copyright © 2013. All Rights Reserved.