public String getRelayStateInfo(HttpServletRequest request,
      HttpServletResponse response)
      throws HttpSamlAuthenticationException {
    String relayState = request.getParameter("RelayState");
    if (relayState == null) {
      throw new HttpSamlAuthenticationException(
          "Could not get the RelayState from the SAML response");
    }
    return relayState;
  }
Get the RelayState from the {@link HttpServletRequest}.
@throws HttpSamlAuthenticationException If RelayState parameter is not available
in the request.
service/src/java/org/apache/hive/service/auth/saml/HiveSamlRelayStateStore.java