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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B extends org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>>Nested classes/interfaces inherited from interface org.springframework.security.core.Authentication
org.springframework.security.core.Authentication.Builder<B extends org.springframework.security.core.Authentication.Builder<B>> -
Constructor Summary
ConstructorsConstructorDescriptionClientTokenAuthToken(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 cookie UUID.Get the documentum login ticket.Get the user principal.Get redirect URI.booleanGet the flag on whether to set back the client token cookie.voidsetCookieUUID(String cookieUUID) set the cookie UUID.voidsetRedirectUri(String redirectUri) Set the redirect URI.voidsetSetbackNeeded(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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.security.core.Authentication
toBuilder
-
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
-
setCookieUUID
set the cookie UUID.- Parameters:
cookieUUID-
-
getCookieUUID
get the cookie UUID.- Returns:
- cookieUUID
-
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
-