Package de.theit.jenkins.crowd
Class CrowdAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
de.theit.jenkins.crowd.CrowdAuthenticationToken
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
public class CrowdAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
This class represents an authentication token that is created after a user
was successfully authenticated against the remote Crowd server.
- Since:
- 07.09.2011
- Version:
- $Id$
- Author:
- Thorsten Heit (theit@gmx.de)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCrowdAuthenticationToken(String pPrincipal, String pCredentials, List<org.springframework.security.core.GrantedAuthority> authorities, String pSsoToken) Creates a new authorization token. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.UserDetailsReturns the SSO token.static voidupdateUserInfo(com.atlassian.crowd.model.user.User user) Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
-
Constructor Details
-
CrowdAuthenticationToken
public CrowdAuthenticationToken(String pPrincipal, String pCredentials, List<org.springframework.security.core.GrantedAuthority> authorities, String pSsoToken) Creates a new authorization token.- Parameters:
pPrincipal- The name of the authenticated Crowd user. May not benull.pCredentials- The credentials. Normally the users password. May only benullwhen the SSO token is given.authorities- The list of granted authorities for the user. May not benull.pSsoToken- The Crowd SSO token. May benullif the token is not (yet) available.
-
-
Method Details
-
getCredentials
- See Also:
-
getPrincipal
public org.springframework.security.core.userdetails.UserDetails getPrincipal()- See Also:
-
getSSOToken
Returns the SSO token.- Returns:
- The SSO token.
nullif the token is not (yet) available.
-
updateUserInfo
public static void updateUserInfo(com.atlassian.crowd.model.user.User user)
-