Package com.avoka.tm.security
Class SSOAuthToken
- java.lang.Object
-
- org.springframework.security.authentication.AbstractAuthenticationToken
-
- org.springframework.security.authentication.UsernamePasswordAuthenticationToken
-
- com.avoka.fc.core.security.SSOAuthenticationToken
-
- com.avoka.tm.security.SSOAuthToken
-
- All Implemented Interfaces:
Serializable
,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(String username)
Creates a new SSO Auth Token for the specified login name.SSOAuthToken(String username, Collection<org.springframework.security.core.GrantedAuthority> authorities)
Creates a new SSO Auth Token for the specified login name and granted authorities (groups).SSOAuthToken(String username, Map<String,Object> attributes)
Creates a new SSO Auth Token for the specified login name and attributes.SSOAuthToken(String username, Map<String,Object> attributes, List<String> groups)
Creates a new SSO Auth Token for the specified login name, attributes and groups the user belongs to.SSOAuthToken(String username, Map<String,Object> attributes, Set<String> groups)
Creates a new SSO Auth Token for the specified login name, attributes and groups the user belongs to.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getGrantedAuthorities()
Returns a set of the authorities group names (String) granted to the token-
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
-
-
-
-
Constructor Detail
-
SSOAuthToken
public SSOAuthToken(String username)
Creates a new SSO Auth Token for the specified login name.- Parameters:
username
- the login name
-
SSOAuthToken
public SSOAuthToken(String username, Map<String,Object> attributes)
Creates a new SSO Auth Token for the specified login name and attributes.- Parameters:
username
- the login nameattributes
- the user attributes
-
SSOAuthToken
public SSOAuthToken(String username, 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 nameauthorities
- the uses set of granted authorities or groups.
-
SSOAuthToken
public SSOAuthToken(String username, Map<String,Object> attributes, Set<String> groups)
Creates a new SSO Auth Token for the specified login name, attributes and groups the user belongs to.- Parameters:
username
- the login nameattributes
- the user attributesgroups
- the set of groups the user belongs to, will be marshaled into granted authorities.
-
SSOAuthToken
public SSOAuthToken(String username, Map<String,Object> attributes, List<String> groups)
Creates a new SSO Auth Token for the specified login name, attributes and groups the user belongs to.- Parameters:
username
- the login nameattributes
- the user attributesgroups
- the set of groups the user belongs to, will be marshaled into granted authorities.
-
-