public class YubiKeyAuthenticationHandler
extends org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
For more info, please visit this link
| Constructor and Description |
|---|
YubiKeyAuthenticationHandler(java.lang.Integer clientId,
java.lang.String secretKey)
Prepares the Yubico client with the received clientId and secretKey.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
After properties set.
|
protected org.apereo.cas.authentication.HandlerResult |
doAuthentication(org.apereo.cas.authentication.Credential credential) |
com.yubico.client.v2.YubicoClient |
getClient() |
YubiKeyAccountRegistry |
getRegistry() |
void |
setRegistry(YubiKeyAccountRegistry registry) |
boolean |
supports(org.apereo.cas.authentication.Credential credential) |
authenticate, createHandlerResult, postAuthenticate, preAuthenticatepublic YubiKeyAuthenticationHandler(java.lang.Integer clientId,
java.lang.String secretKey)
YubiKeyAccountRegistry.
By default, all accounts are allowed.clientId - the client idsecretKey - the secret key@PostConstruct public void afterPropertiesSet()
protected org.apereo.cas.authentication.HandlerResult doAuthentication(org.apereo.cas.authentication.Credential credential)
throws java.security.GeneralSecurityException,
org.apereo.cas.authentication.PreventedException
doAuthentication in class org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandlerjava.security.GeneralSecurityExceptionorg.apereo.cas.authentication.PreventedExceptionpublic void setRegistry(YubiKeyAccountRegistry registry)
public YubiKeyAccountRegistry getRegistry()
public com.yubico.client.v2.YubicoClient getClient()
public boolean supports(org.apereo.cas.authentication.Credential credential)