Class ClientData

java.lang.Object
org.keycloak.protocol.ClientData

public class ClientData extends Object
Encapsulates necessary data about client login request (OIDC or SAML request). Can be useful for cases when authenticationSession expired and we need to redirect back to the client with the error due to this.
Author:
Marek Posolda
  • Field Details

    • logger

      protected static final org.jboss.logging.Logger logger
  • Constructor Details

    • ClientData

      public ClientData()
    • ClientData

      public ClientData(String redirectUri, String responseType, String responseMode, String state)
  • Method Details

    • getRedirectUri

      public String getRedirectUri()
    • setRedirectUri

      public void setRedirectUri(String redirectUri)
    • getResponseType

      public String getResponseType()
    • setResponseType

      public void setResponseType(String responseType)
    • getResponseMode

      public String getResponseMode()
    • setResponseMode

      public void setResponseMode(String responseMode)
    • getState

      public String getState()
    • setState

      public void setState(String state)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • decodeClientDataFromParameter

      public static ClientData decodeClientDataFromParameter(String clientDataParam) throws IOException
      Throws:
      IOException
    • encode

      public String encode()