Class RestClientSignatureState
java.lang.Object
se.idsec.signservice.integration.core.RestClientSignatureState
- All Implemented Interfaces:
Serializable,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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns the unique identifier for the signature operation.getState()Holds the session state.voidAssigns the unique identifier for the signature operation.voidsetState(LinkedHashMap<String, ?> state) Assigns the session state.
-
Constructor Details
-
RestClientSignatureState
public RestClientSignatureState()Default constructor.
-
-
Method Details
-
getId
Returns the unique identifier for the signature operation.- Specified by:
getIdin interfaceSignatureState- Returns:
- the signature operation identifier
-
setId
Assigns the unique identifier for the signature operation.- Parameters:
id- signature operation ID
-
getState
Holds the session state.Note: Only the implementation of the SignService Integration Service needs to understand how to interpret this data.
- Specified by:
getStatein interfaceSignatureState- Returns:
- the session state, or
null
-
setState
Assigns the session state.- Parameters:
state- the session state
-