public class CasAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
implements java.io.Serializable
Authentication.| Constructor and Description |
|---|
CasAuthenticationToken(java.lang.String key,
java.lang.Object principal,
java.lang.Object credentials,
java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
org.springframework.security.core.userdetails.UserDetails userDetails,
org.jasig.cas.client.validation.Assertion assertion)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
org.jasig.cas.client.validation.Assertion |
getAssertion() |
java.lang.Object |
getCredentials() |
int |
getKeyHash() |
java.lang.Object |
getPrincipal() |
org.springframework.security.core.userdetails.UserDetails |
getUserDetails() |
java.lang.String |
toString() |
eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetailspublic CasAuthenticationToken(java.lang.String key,
java.lang.Object principal,
java.lang.Object credentials,
java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
org.springframework.security.core.userdetails.UserDetails userDetails,
org.jasig.cas.client.validation.Assertion assertion)
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 the
UserDetailsService) (cannot
be null)userDetails - the user details (from the
UserDetailsService) (cannot
be null)assertion - the assertion returned from the CAS servers. It contains the
principal and how to obtain a proxy ticket for the user.java.lang.IllegalArgumentException - if a null was passedpublic boolean equals(java.lang.Object obj)
equals in interface java.security.Principalequals in class org.springframework.security.authentication.AbstractAuthenticationTokenpublic java.lang.Object getCredentials()
getCredentials in interface org.springframework.security.core.Authenticationpublic int getKeyHash()
public java.lang.Object getPrincipal()
getPrincipal in interface org.springframework.security.core.Authenticationpublic org.jasig.cas.client.validation.Assertion getAssertion()
public org.springframework.security.core.userdetails.UserDetails getUserDetails()
public java.lang.String toString()
toString in interface java.security.PrincipaltoString in class org.springframework.security.authentication.AbstractAuthenticationToken