public final class AuthenticatorDelegate extends Object
Authenticator
class are expected to be thin wrappers that delegate most if not all authentication
logic to this class.Constructor and Description |
---|
AuthenticatorDelegate() |
Modifier and Type | Method and Description |
---|---|
Principal |
authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Performs CAS authentication on the given request and returns the principal
determined by the configured
CasRealm on success. |
String |
getCasServerLoginUrl() |
String |
getServerName() |
String |
getServiceUrl() |
void |
setArtifactParameterName(String artifactParameterName) |
void |
setCasServerLoginUrl(String casServerLoginUrl) |
void |
setRealm(CasRealm realm) |
void |
setServerName(String serverName) |
void |
setServiceParameterName(String serviceParameterName) |
void |
setServiceUrl(String serviceUrl) |
void |
setTicketValidator(TicketValidator ticketValidator) |
public final Principal authenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
CasRealm
on success.request
- HTTP request.response
- HTTP response.public String getServiceUrl()
public void setServiceUrl(String serviceUrl)
serviceUrl
- the serviceUrl to setpublic String getServerName()
public void setServerName(String serverName)
serverName
- the serverName to setpublic String getCasServerLoginUrl()
public void setCasServerLoginUrl(String casServerLoginUrl)
casServerLoginUrl
- the casServerLoginUrl to setpublic void setArtifactParameterName(String artifactParameterName)
artifactParameterName
- the artifactParameterName to setpublic void setServiceParameterName(String serviceParameterName)
serviceParameterName
- the serviceParameterName to setpublic void setTicketValidator(TicketValidator ticketValidator)
ticketValidator
- the ticketValidator to setpublic void setRealm(CasRealm realm)
realm
- the realm to setCopyright © 2006–2015 Jasig. All rights reserved.