Class ImpersonationRequestToken
java.lang.Object
com.broadleafcommerce.auth.user.endpoint.ImpersonationRequestToken
- All Implemented Interfaces:
Serializable
The values resolved from an
ImpersonationRequest after redirect and token validation.- See Also:
-
com.broadleafcommerce.auth.user.web.endpoint.ImpersonationEndpoint#consumeToken(HttpServletResponse, String)com.broadleafcommerce.auth.user.web.endpoint.ImpersonationEndpoint#impersonate(HttpServletResponse, ImpersonationRequest, Authentication)- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe client ID of the user requesting impersonationThe user ID of the CSR that is impersonating a user.The client ID of the user to be impersonated.The subject to be impersonated.Indicates that CSR is not impersonating as a customer but is operating as themselves.Upon consuming the token, the URL to redirect the user to.inthashCode()toString()
-
Constructor Details
-
ImpersonationRequestToken
public ImpersonationRequestToken(String client_id, String impersonated_sub, String impersonated_client_id, String redirect_uri, String csr_user_id, Boolean impersonating_self) Creates a newImpersonationRequestTokeninstance.- Parameters:
client_id- The client ID of the user requesting impersonationimpersonated_sub- The subject to be impersonated. Usually the same asUser.getUsername().impersonated_client_id- The client ID of the user to be impersonated.redirect_uri- Upon consuming the token, the URL to redirect the user to.csr_user_id- The user ID of the CSR that is impersonating a user.impersonating_self- Indicates that CSR is not impersonating as a customer but is operating as themselves. This is typically used for things like quote management.- See Also:
-
-
Method Details
-
getClient_id
The client ID of the user requesting impersonation- See Also:
-
getImpersonated_sub
The subject to be impersonated. Usually the same asUser.getUsername(). -
getImpersonated_client_id
The client ID of the user to be impersonated.- See Also:
-
getRedirect_uri
Upon consuming the token, the URL to redirect the user to. -
getCsr_user_id
The user ID of the CSR that is impersonating a user. -
getImpersonating_self
Indicates that CSR is not impersonating as a customer but is operating as themselves. This is typically used for things like quote management. -
equals
-
hashCode
public int hashCode() -
toString
-