public class CasAuthentication extends org.acegisecurity.providers.AbstractAuthenticationToken implements Serializable
Authentication.| Constructor and Description |
|---|
CasAuthentication(int keyHash,
Object principal,
Object credentials,
org.acegisecurity.GrantedAuthority[] authorities,
org.acegisecurity.userdetails.UserDetails userDetails,
org.jasig.cas.client.validation.Assertion assertion)
Constructor.
|
CasAuthentication(String key,
Object principal,
Object credentials,
org.acegisecurity.GrantedAuthority[] authorities,
org.acegisecurity.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.acegisecurity.userdetails.UserDetails |
getUserDetails() |
static CasAuthentication |
newInstance(org.springframework.security.cas.authentication.CasAuthenticationToken casToken) |
String |
toString() |
public CasAuthentication(String key, Object principal, Object credentials, org.acegisecurity.GrantedAuthority[] authorities, org.acegisecurity.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.IllegalArgumentException - if a null was passedpublic CasAuthentication(int keyHash,
Object principal,
Object credentials,
org.acegisecurity.GrantedAuthority[] authorities,
org.acegisecurity.userdetails.UserDetails userDetails,
org.jasig.cas.client.validation.Assertion assertion)
keyHash - 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.IllegalArgumentException - if a null was passedpublic static CasAuthentication newInstance(org.springframework.security.cas.authentication.CasAuthenticationToken casToken)
public boolean equals(Object obj)
public Object getCredentials()
getCredentials in interface org.acegisecurity.Authenticationpublic int getKeyHash()
public Object getPrincipal()
getPrincipal in interface org.acegisecurity.Authenticationpublic org.jasig.cas.client.validation.Assertion getAssertion()
public org.acegisecurity.userdetails.UserDetails getUserDetails()
Copyright © 2016–2017. All rights reserved.