|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.providers.AbstractAuthenticationToken
com.atlassian.crowd.integration.springsecurity.CrowdSSOAuthenticationToken
public class CrowdSSOAuthenticationToken
A CrowdSSOAuthenticationToken can be used to represent an authentication request consisting of the Crowd SSO Token String (credential) and HTTP ValidationFactors (details). It can also be used to represent a token for successful authentication consisting of the CrowdUserDetails (principal), the Crowd SSO Token String (credential) and a collection of Group names the authenticated user is a member of (GrantedAuthorities).
| Constructor Summary | |
|---|---|
CrowdSSOAuthenticationToken(CrowdUserDetails principal,
java.lang.String ssoToken,
org.springframework.security.GrantedAuthority[] authorities)
Use this constructor to create an authenticated SSO token. |
|
CrowdSSOAuthenticationToken(java.lang.String ssoToken)
Use constructor to create an unauthenticated SSO token. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getCredentials()
The credentials that prove the principal is correct. |
java.lang.Object |
getPrincipal()
The identity of the principal being authenticated. |
void |
setAuthenticated(boolean isAuthenticated)
Disallow setAuthenticated(true). |
| Methods inherited from class org.springframework.security.providers.AbstractAuthenticationToken |
|---|
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CrowdSSOAuthenticationToken(java.lang.String ssoToken)
ssoToken - token string.
public CrowdSSOAuthenticationToken(CrowdUserDetails principal,
java.lang.String ssoToken,
org.springframework.security.GrantedAuthority[] authorities)
principal - authenticated user.ssoToken - authenticated SSO token as credential.authorities - granted authorities.| Method Detail |
|---|
public java.lang.Object getCredentials()
AuthenticationManager. Callers are expected to populate the credentials.
Principalpublic java.lang.Object getPrincipal()
Principal being authenticated
public void setAuthenticated(boolean isAuthenticated)
throws java.lang.IllegalArgumentException
setAuthenticated in interface org.springframework.security.AuthenticationsetAuthenticated in class org.springframework.security.providers.AbstractAuthenticationTokenisAuthenticated - must be false.
java.lang.IllegalArgumentException - throwd if isAuthenticated paramater is set to true.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||