Class ImpersonationRequestToken

java.lang.Object
com.broadleafcommerce.auth.user.endpoint.ImpersonationRequestToken

public final class ImpersonationRequestToken extends Object
The values resolved from an ImpersonationRequest after redirect and token validation.
See Also:
  • 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)
  • Method Details

    • getClient_id

      public String getClient_id()
      The client ID of the user requesting impersonation
      See Also:
    • getImpersonated_sub

      public String getImpersonated_sub()
      The subject to be impersonated. Usually the same as User.getUsername().
    • getImpersonated_client_id

      public String getImpersonated_client_id()
      The client ID of the user to be impersonated.
      See Also:
    • getRedirect_uri

      public String getRedirect_uri()
      Upon consuming the token, the URL to redirect the user to.
    • getCsr_user_id

      public String getCsr_user_id()
      The user ID of the CSR that is impersonating a user.
    • getImpersonating_self

      public Boolean 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object