public class RadiusTokenAuthenticationHandler extends AbstractPreAndPostProcessingAuthenticationHandler
RadiusTokenAuthenticationHandler
.logger, principalFactory, servicesManager
SUCCESSFUL_AUTHENTICATION_HANDLERS
Constructor and Description |
---|
RadiusTokenAuthenticationHandler()
Instantiates a new Radius authentication handler.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canPing()
Can ping boolean.
|
protected HandlerResult |
doAuthentication(Credential credential)
Performs the details of authentication and returns an authentication handler result on success.
|
java.util.List<RadiusServer> |
getServers() |
boolean |
isFailoverOnAuthenticationFailure() |
boolean |
isFailoverOnException() |
void |
setFailoverOnAuthenticationFailure(boolean failoverOnAuthenticationFailure) |
void |
setFailoverOnException(boolean failoverOnException) |
void |
setServers(java.util.List<RadiusServer> servers) |
boolean |
supports(Credential credential)
Determines whether the handler has the capability to authenticate the given credential.
|
authenticate, createHandlerResult, postAuthenticate, preAuthenticate
getName, setName, setPrincipalFactory, setServicesManager
public RadiusTokenAuthenticationHandler()
public boolean supports(Credential credential)
AuthenticationHandler
AuthenticationHandler.authenticate(Credential)
method MUST be capable of processing a given credential if
supports
returns true on the same credential.credential
- The credential to check.protected HandlerResult doAuthentication(Credential credential) throws java.security.GeneralSecurityException, PreventedException
AbstractPreAndPostProcessingAuthenticationHandler
doAuthentication
in class AbstractPreAndPostProcessingAuthenticationHandler
credential
- Credential to authenticate.java.security.GeneralSecurityException
- On authentication failure that is thrown out to the caller of
AbstractPreAndPostProcessingAuthenticationHandler.authenticate(Credential)
.PreventedException
- On the indeterminate case when authentication is prevented.public boolean canPing()
public java.util.List<RadiusServer> getServers()
public void setServers(java.util.List<RadiusServer> servers)
public boolean isFailoverOnException()
public void setFailoverOnException(boolean failoverOnException)
public boolean isFailoverOnAuthenticationFailure()
public void setFailoverOnAuthenticationFailure(boolean failoverOnAuthenticationFailure)