public class CasAuthenticationToken extends org.springframework.security.authentication.AbstractAuthenticationToken implements Serializable
Authentication
.Constructor and Description |
---|
CasAuthenticationToken(String key,
Object principal,
Object credentials,
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(Object obj) |
org.jasig.cas.client.validation.Assertion |
getAssertion() |
Object |
getCredentials() |
int |
getKeyHash() |
Object |
getPrincipal() |
org.springframework.security.core.userdetails.UserDetails |
getUserDetails() |
String |
toString() |
public CasAuthenticationToken(String key, Object principal, Object credentials, 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 CasAuthenticationProvider
principal
- 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.IllegalArgumentException
- if a null
was passedpublic boolean equals(Object obj)
public Object getCredentials()
getCredentials
in interface org.springframework.security.core.Authentication
public int getKeyHash()
public Object getPrincipal()
getPrincipal
in interface org.springframework.security.core.Authentication
public org.jasig.cas.client.validation.Assertion getAssertion()
public org.springframework.security.core.userdetails.UserDetails getUserDetails()