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:
- 
Constructor SummaryConstructorsConstructorDescriptionSsoAuthToken(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.Creates a new SSO Auth Token for the specified login name, attributes and groups the user belongs to.Creates a new SSO Auth Token for the specified login name, attributes and groups the user belongs to.
- 
Method SummaryModifier and TypeMethodDescriptionReturns a set of the authorities group names (String) granted to the tokenMethods inherited from class com.avoka.fc.core.security.SSOAuthenticationTokengetAttributes, getAuthorities, toStringMethods inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationTokenauthenticated, eraseCredentials, getCredentials, getPrincipal, setAuthenticated, unauthenticatedMethods inherited from class org.springframework.security.authentication.AbstractAuthenticationTokenequals, getDetails, getName, hashCode, isAuthenticated, setDetails
- 
Constructor Details- 
SsoAuthTokenCreates a new SSO Auth Token for the specified login name.- Parameters:
- username- the login name
 
- 
SsoAuthTokenCreates a new SSO Auth Token for the specified login name and attributes.- Parameters:
- username- the login name
- attributes- the user attributes
 
- 
SsoAuthTokenpublic 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 name
- authorities- the uses set of granted authorities or groups.
 
- 
SsoAuthTokenCreates 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.
 
- 
SsoAuthTokenCreates 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.
 
 
- 
- 
Method Details- 
getGrantedAuthoritiesReturns a set of the authorities group names (String) granted to the token- Returns:
- A set of granted authorities group names
- Since:
- 19.11.0
 
 
-