public class CasAuthenticationToken extends Object implements org.apache.shiro.authc.AuthenticationToken
AuthenticationToken that is specific to CAS
Proxy Tickets.| Constructor and Description |
|---|
CasAuthenticationToken(String ticket)
Creates a token with the given ticket as the credential.
|
CasAuthenticationToken(String ticket,
String service)
Creates a token with the ticket as the credential and the service as a service.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getCredentials() |
Object |
getPrincipal() |
String |
getService()
Retrieves the Service that the CAS proxy ticket was made for (if set).
|
String |
getTicket()
Retrieves the CAS Proxy ticket for this token.
|
public CasAuthenticationToken(String ticket)
ticket - CAS Proxy Ticket to use as the credential.public Object getCredentials()
getCredentials in interface org.apache.shiro.authc.AuthenticationTokenpublic Object getPrincipal()
getPrincipal in interface org.apache.shiro.authc.AuthenticationTokenpublic String getTicket()
public String getService()
This work is licensed under a Creative Commons Attribution 4.0 International License.