Class ClientTokenAuthToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
com.emc.documentum.rest.security.ticket.ClientTokenAuthToken
- All Implemented Interfaces:
Serializable
,Principal
,org.springframework.security.core.Authentication
,org.springframework.security.core.CredentialsContainer
public class ClientTokenAuthToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
Client token authentication token
- See Also:
-
Constructor Summary
ConstructorDescriptionClientTokenAuthToken
(org.springframework.security.authentication.AbstractAuthenticationToken token, ClientToken clientToken, boolean setbackNeeded) Constructor for client token authentication token. -
Method Summary
Modifier and TypeMethodDescriptionGet the client token.Get the documentum login ticket.Get the user principal.Get redirect URI.boolean
Get the flag on whether to set back the client token cookie.void
setRedirectUri
(String redirectUri) Set the redirect URI.void
setSetbackNeeded
(boolean setbackNeeded) Set whether need to set back the client token as a cookie.Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
-
Constructor Details
-
ClientTokenAuthToken
public ClientTokenAuthToken(org.springframework.security.authentication.AbstractAuthenticationToken token, ClientToken clientToken, boolean setbackNeeded) Constructor for client token authentication token.- Parameters:
token
- the initial authentication tokenclientToken
- client tokensetbackNeeded
- a flag indicates whether to set back the client token cookie
-
-
Method Details
-
getCredentials
Get the documentum login ticket.- Returns:
- the documentum login ticket
-
getPrincipal
Get the user principal.- Returns:
- the user principal
-
getClientToken
Get the client token.- Returns:
- the client token
-
isSetbackNeeded
public boolean isSetbackNeeded()Get the flag on whether to set back the client token cookie.- Returns:
- true indicates to set back the cookie; false for otherwise
-
setSetbackNeeded
public void setSetbackNeeded(boolean setbackNeeded) Set whether need to set back the client token as a cookie.- Parameters:
setbackNeeded
- true indicates to set back the cookie; false for otherwise
-
setRedirectUri
Set the redirect URI.- Parameters:
redirectUri
- the redirect URI
-
getRedirectUri
Get redirect URI.- Returns:
- the redirect URI
-