Class SsoAuthToken

  • All Implemented Interfaces:
    java.io.Serializable, java.security.Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

    public class SsoAuthToken
    extends com.avoka.fc.core.security.SSOAuthenticationToken

    Provides an SSO Authentication Token returned by the Saml2Parser in the Saml2ParserResult.

    Note this URL context path pre-pending should be done by the calling code and will not be done by this class.

    Since:
    5.1.4
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SsoAuthToken​(java.lang.String username)
      Creates a new SSO Auth Token for the specified login name.
      SsoAuthToken​(java.lang.String username, java.util.Collection<org.springframework.security.core.GrantedAuthority> authorities)
      Creates a new SSO Auth Token for the specified login name and granted authorities (groups).
      SsoAuthToken​(java.lang.String username, java.util.Map<java.lang.String,​java.lang.Object> attributes)
      Creates a new SSO Auth Token for the specified login name and attributes.
      SsoAuthToken​(java.lang.String username, java.util.Map<java.lang.String,​java.lang.Object> attributes, java.util.List<java.lang.String> groups)
      Creates a new SSO Auth Token for the specified login name, attributes and groups the user belongs to.
      SsoAuthToken​(java.lang.String username, java.util.Map<java.lang.String,​java.lang.Object> attributes, java.util.Set<java.lang.String> groups)
      Creates a new SSO Auth Token for the specified login name, attributes and groups the user belongs to.
    • Method Summary

      • Methods inherited from class com.avoka.fc.core.security.SSOAuthenticationToken

        getAttributes, getAuthorities, toString
      • Methods inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationToken

        eraseCredentials, getCredentials, getPrincipal, setAuthenticated
      • Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

        equals, getDetails, getName, hashCode, isAuthenticated, setDetails
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.security.Principal

        implies
    • Constructor Detail

      • SsoAuthToken

        public SsoAuthToken​(java.lang.String username)
        Creates a new SSO Auth Token for the specified login name.
        Parameters:
        username - the login name
      • SsoAuthToken

        public SsoAuthToken​(java.lang.String username,
                            java.util.Map<java.lang.String,​java.lang.Object> attributes)
        Creates a new SSO Auth Token for the specified login name and attributes.
        Parameters:
        username - the login name
        attributes - the user attributes
      • SsoAuthToken

        public SsoAuthToken​(java.lang.String username,
                            java.util.Collection<org.springframework.security.core.GrantedAuthority> authorities)
        Creates a new SSO Auth Token for the specified login name and granted authorities (groups).
        Parameters:
        username - the login name
        authorities - the uses set of granted authorities or groups.
      • SsoAuthToken

        public SsoAuthToken​(java.lang.String username,
                            java.util.Map<java.lang.String,​java.lang.Object> attributes,
                            java.util.Set<java.lang.String> groups)
        Creates a new SSO Auth Token for the specified login name, attributes and groups the user belongs to.
        Parameters:
        username - the login name
        attributes - the user attributes
        groups - the set of groups the user belongs to, will be marshaled into granted authorities.
      • SsoAuthToken

        public SsoAuthToken​(java.lang.String username,
                            java.util.Map<java.lang.String,​java.lang.Object> attributes,
                            java.util.List<java.lang.String> groups)
        Creates a new SSO Auth Token for the specified login name, attributes and groups the user belongs to.
        Parameters:
        username - the login name
        attributes - the user attributes
        groups - the set of groups the user belongs to, will be marshaled into granted authorities.