public class CasAuthenticator extends ProfileDefinitionAware<CommonProfile> implements Authenticator<TokenCredentials>
Modifier and Type | Field and Description |
---|---|
protected String |
callbackUrl |
protected CallbackUrlResolver |
callbackUrlResolver |
protected String |
clientName |
protected CasConfiguration |
configuration |
protected UrlResolver |
urlResolver |
Constructor and Description |
---|
CasAuthenticator(CasConfiguration configuration,
String clientName,
UrlResolver urlResolver,
CallbackUrlResolver callbackUrlResolver,
String callbackUrl) |
Modifier and Type | Method and Description |
---|---|
protected void |
internalInit()
Internal initialization of the object.
|
void |
validate(TokenCredentials credentials,
WebContext context)
Validate the credentials.
|
defaultProfileDefinition, getProfileDefinition, setProfileDefinition
init
protected CasConfiguration configuration
protected String clientName
protected UrlResolver urlResolver
protected CallbackUrlResolver callbackUrlResolver
protected String callbackUrl
public CasAuthenticator(CasConfiguration configuration, String clientName, UrlResolver urlResolver, CallbackUrlResolver callbackUrlResolver, String callbackUrl)
protected void internalInit()
InitializableObject
internalInit
in class InitializableObject
public void validate(TokenCredentials credentials, WebContext context)
Authenticator
CredentialsException
in case of failure.validate
in interface Authenticator<TokenCredentials>
credentials
- the given credentialscontext
- the web contextCopyright © 2019. All rights reserved.