|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.acegisecurity.providers.AbstractAuthenticationToken com.atlassian.crowd.integration.acegi.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.acegisecurity.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.acegisecurity.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.acegisecurity.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.
Principal
public java.lang.Object getPrincipal()
Principal
being authenticatedpublic void setAuthenticated(boolean isAuthenticated) throws java.lang.IllegalArgumentException
setAuthenticated
in interface org.acegisecurity.Authentication
setAuthenticated
in class org.acegisecurity.providers.AbstractAuthenticationToken
isAuthenticated
- 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 |