public class CasAuthenticator extends ProfileDefinitionAware<CommonProfile> implements Authenticator<TokenCredentials>
Constructor and Description |
---|
CasAuthenticator() |
CasAuthenticator(CasConfiguration configuration,
String callbackUrl) |
Modifier and Type | Method and Description |
---|---|
String |
getCallbackUrl() |
CasConfiguration |
getConfiguration() |
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
void |
setCallbackUrl(String callbackUrl) |
void |
setConfiguration(CasConfiguration configuration) |
void |
validate(TokenCredentials credentials,
WebContext context)
Validate the credentials.
|
defaultProfileDefinition, getProfileDefinition, setProfileDefinition
init, reinit
public CasAuthenticator()
public CasAuthenticator(CasConfiguration configuration, String callbackUrl)
protected void internalInit(WebContext context)
InitializableWebObject
internalInit
in class InitializableWebObject
context
- the web contextpublic void validate(TokenCredentials credentials, WebContext context) throws HttpAction
Authenticator
CredentialsException
in case of failure.validate
in interface Authenticator<TokenCredentials>
credentials
- the given credentialscontext
- the web contextHttpAction
- requires a specific HTTP action if necessarypublic CasConfiguration getConfiguration()
public void setConfiguration(CasConfiguration configuration)
public String getCallbackUrl()
public void setCallbackUrl(String callbackUrl)
Copyright © 2018. All rights reserved.