Class RestClientSignatureState

java.lang.Object
se.idsec.signservice.integration.core.RestClientSignatureState
All Implemented Interfaces:
Serializable, SignatureState

public class RestClientSignatureState extends Object implements SignatureState
When the Sign Service Integration service is running as a REST service the clients need to have a concrete class so that JSON deserialization will work. This class provides this.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
See Also:
  • Constructor Details

    • RestClientSignatureState

      public RestClientSignatureState()
      Default constructor.
  • Method Details

    • getId

      public String getId()
      Returns the unique identifier for the signature operation.
      Specified by:
      getId in interface SignatureState
      Returns:
      the signature operation identifier
    • setId

      public void setId(String id)
      Assigns the unique identifier for the signature operation.
      Parameters:
      id - signature operation ID
    • getState

      public Serializable getState()
      Holds the session state.

      Note: Only the implementation of the SignService Integration Service needs to understand how to interpret this data.

      Specified by:
      getState in interface SignatureState
      Returns:
      the session state, or null
    • setState

      public void setState(LinkedHashMap<String,?> state)
      Assigns the session state.
      Parameters:
      state - the session state