Package net.shibboleth.idp.cas.protocol
Class ServiceTicketRequest
java.lang.Object
net.shibboleth.idp.cas.protocol.ServiceTicketRequest
Describes a request for a ticket to access a service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanCAS protocol gateway flag.private StringCAS protocol 3.0 "method" parameter.static final StringHTTP GET method.static final StringHTTP POST method.private booleanCAS protocol renew flag.private booleanFlag indicating whether ticket request is via SAML 1.1 protocol.private final StringService URL. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of themethodparameter.Get the service requesting the ticket.booleanWhether to not require fresh subject interaction to succeed.booleanisRenew()Get whether to require fresh subject interaction to succeed.booleanisSAML()Get whether ticket request is via SAML 1.1 protocol.voidsetGateway(boolean doNotForce) Set whether to not require fresh subject interaction to succeed.voidSets the value of themethodparameter.voidsetRenew(boolean force) Set whether to require fresh subject interaction to succeed.voidsetSAML(boolean flag) Set whether ticket request is via SAML 1.1 protocol.
-
Field Details
-
METHOD_GET
HTTP GET method.- See Also:
-
METHOD_POST
HTTP POST method.- See Also:
-
serviceURL
Service URL. -
renew
private boolean renewCAS protocol renew flag. -
gateway
private boolean gatewayCAS protocol gateway flag. -
saml
private boolean samlFlag indicating whether ticket request is via SAML 1.1 protocol. -
method
CAS protocol 3.0 "method" parameter.
-
-
Constructor Details
-
ServiceTicketRequest
Constructor.- Parameters:
service- URL of service requesting the ticket
-
-
Method Details
-
getService
Get the service requesting the ticket.- Returns:
- service requesting the ticket
-
isRenew
public boolean isRenew()Get whether to require fresh subject interaction to succeed.- Returns:
- whether subject interaction must occur
-
setRenew
public void setRenew(boolean force) Set whether to require fresh subject interaction to succeed.- Parameters:
force- whether subject interaction must occur
-
isGateway
public boolean isGateway()Whether to not require fresh subject interaction to succeed.- Returns:
- whether subject interaction should not occur
-
setGateway
public void setGateway(boolean doNotForce) Set whether to not require fresh subject interaction to succeed.- Parameters:
doNotForce- whether subject interaction should not occur
-
isSAML
public boolean isSAML()Get whether ticket request is via SAML 1.1 protocol.- Returns:
- whether ticket request is via SAML 1.1 protocol
-
setSAML
public void setSAML(boolean flag) Set whether ticket request is via SAML 1.1 protocol.- Parameters:
flag- flag to set
-
getMethod
Gets the value of themethodparameter. Default is "GET". -
setMethod
Sets the value of themethodparameter. See http://jasig.github.io/cas/development/protocol/CAS-Protocol-Specification.html#head2.1.1 for more information.
-