public class CasAuthenticationToken extends AbstractAuthenticationToken implements Serializable
Authentication.| Constructor and Description |
|---|
CasAuthenticationToken(String key,
Object principal,
Object credentials,
GrantedAuthority[] authorities,
UserDetails userDetails,
List proxyList,
String proxyGrantingTicketIou)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object |
getCredentials()
The credentials that prove the principal is correct.
|
int |
getKeyHash() |
Object |
getPrincipal()
The identity of the principal being authenticated.
|
String |
getProxyGrantingTicketIou()
Obtains the proxy granting ticket IOU.
|
List |
getProxyList() |
UserDetails |
getUserDetails() |
String |
toString() |
getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetailspublic CasAuthenticationToken(String key, Object principal, Object credentials, GrantedAuthority[] authorities, UserDetails userDetails, List proxyList, String proxyGrantingTicketIou)
key - to identify if this object made by a given CasAuthenticationProviderprincipal - typically the UserDetails object (cannot be null)credentials - the service/proxy ticket ID from CAS (cannot be
null)authorities - the authorities granted to the user (from CasAuthoritiesPopulator) (cannot be null)userDetails - the user details (from CasAuthoritiesPopulator) (cannot be null)proxyList - the list of proxies from CAS (cannot be
null)proxyGrantingTicketIou - the PGT-IOU ID from CAS (cannot be
null, but may be an empty String if no
PGT-IOU ID was provided)IllegalArgumentException - if a null was passedpublic boolean equals(Object obj)
equals in interface Principalequals in class AbstractAuthenticationTokenpublic Object getCredentials()
AuthenticationAuthenticationManager. Callers are expected to populate the credentials.getCredentials in interface AuthenticationPrincipalpublic int getKeyHash()
public Object getPrincipal()
AuthenticationgetPrincipal in interface AuthenticationPrincipal being authenticatedpublic String getProxyGrantingTicketIou()
String if no proxy callback was requested when validating the
service ticketpublic List getProxyList()
public UserDetails getUserDetails()
public String toString()
toString in interface PrincipaltoString in class AbstractAuthenticationTokenCopyright © 2021. All rights reserved.