public class ServiceProperties extends Object implements InitializingBean
Each web application capable of processing CAS tickets is known as a service. This class stores the properties that are relevant to the local CAS service, being the application that is being secured by Spring Security.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CAS_ARTIFACT_PARAMETER |
static String |
DEFAULT_CAS_SERVICE_PARAMETER |
Constructor and Description |
---|
ServiceProperties() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
String |
getArtifactParameter() |
String |
getService()
Represents the service the user is authenticating to.
|
String |
getServiceParameter()
Configures the Request parameter to look for when attempting to send a request to
CAS.
|
boolean |
isAuthenticateAllArtifacts() |
boolean |
isSendRenew()
Indicates whether the
renew parameter should be sent to the CAS login
URL and CAS validation URL. |
void |
setArtifactParameter(String artifactParameter)
Configures the Request Parameter to look for when attempting to see if a CAS ticket
was sent from the server.
|
void |
setAuthenticateAllArtifacts(boolean authenticateAllArtifacts)
If true, then any non-null artifact (ticket) should be authenticated.
|
void |
setSendRenew(boolean sendRenew) |
void |
setService(String service) |
void |
setServiceParameter(String serviceParameter) |
public static final String DEFAULT_CAS_ARTIFACT_PARAMETER
public static final String DEFAULT_CAS_SERVICE_PARAMETER
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public final String getService()
This service is the callback URL belonging to the local Spring Security System for Spring secured application. For example,
https://www.mycompany.com/application/login/cas
public final boolean isSendRenew()
renew
parameter should be sent to the CAS login
URL and CAS validation URL.
If true
, it will force CAS to authenticate the user again (even if the
user has previously authenticated). During ticket validation it will require the
ticket was generated as a consequence of an explicit login. High security
applications would probably set this to true
. Defaults to
false
, providing automated single sign on.
renew
parameter to CASpublic final void setSendRenew(boolean sendRenew)
public final void setService(String service)
public final String getArtifactParameter()
public final void setArtifactParameter(String artifactParameter)
artifactParameter
- the id to use. Default is "ticket".public final String getServiceParameter()
public final void setServiceParameter(String serviceParameter)
public final boolean isAuthenticateAllArtifacts()
public final void setAuthenticateAllArtifacts(boolean authenticateAllArtifacts)
authenticateAllArtifacts
-