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

    Constructors
    Constructor
    Description
    CrowdAuthenticationToken(String pPrincipal, String pCredentials, List<org.springframework.security.core.GrantedAuthority> authorities, String pSsoToken)
    Creates a new authorization token.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.core.userdetails.UserDetails
    Returns the SSO token.
    static void
    updateUserInfo(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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.security.Principal

    implies
  • 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 be null.
      pCredentials - The credentials. Normally the users password. May only be null when the SSO token is given.
      authorities - The list of granted authorities for the user. May not be null.
      pSsoToken - The Crowd SSO token. May be null if the token is not (yet) available.
  • Method Details

    • getCredentials

      public String getCredentials()
      See Also:
      • Authentication.getCredentials()
    • getPrincipal

      public org.springframework.security.core.userdetails.UserDetails getPrincipal()
      See Also:
      • Authentication.getPrincipal()
    • getSSOToken

      public String getSSOToken()
      Returns the SSO token.
      Returns:
      The SSO token. null if the token is not (yet) available.
    • updateUserInfo

      public static void updateUserInfo(com.atlassian.crowd.model.user.User user)