Class TokenRequestState


  • public abstract class TokenRequestState
    extends java.lang.Object
    • Constructor Detail

      • TokenRequestState

        public TokenRequestState()
    • Method Detail

      • create

        public static TokenRequestState create​(java.lang.String csrfTokenHash,
                                               java.lang.String state)
      • parse

        public static TokenRequestState parse​(java.lang.String serialized)
        Parse a serialized state into a TokenRequestState instance.
        Parameters:
        serialized - serialized token request state
        Returns:
        TokenRequestState instance
      • getCsrfTokenHash

        public abstract java.lang.String getCsrfTokenHash()
      • getInnerState

        public abstract java.lang.String getInnerState()
      • serialize

        public java.lang.String serialize()
        Serialize into JSON format and encode.
        Returns:
        serialized state