Class EncodedSignatureSessionState

java.lang.Object
se.idsec.signservice.integration.state.impl.EncodedSignatureSessionState
All Implemented Interfaces:
Serializable

public class EncodedSignatureSessionState extends Object implements Serializable
Implementation of an encoded signature session state.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
See Also:
  • Constructor Details

    • EncodedSignatureSessionState

      public EncodedSignatureSessionState()
      Default constructor.
    • EncodedSignatureSessionState

      public EncodedSignatureSessionState(String encodedState)
      Constructor.
      Parameters:
      encodedState - the encoded state
    • EncodedSignatureSessionState

      public EncodedSignatureSessionState(SignatureSessionState state) throws IOException
      Constructor.
      Parameters:
      state - the state
      Throws:
      IOException - for serialization errors
  • Method Details

    • setSignatureSessionState

      public void setSignatureSessionState(SignatureSessionState state) throws IOException
      Assigns the state to be compressed.
      Parameters:
      state - the state
      Throws:
      IOException - for serialization or compression errors
    • getSignatureSessionState

      public SignatureSessionState getSignatureSessionState() throws IOException
      Decompresses and gets the session state.
      Returns:
      the state
      Throws:
      IOException - for deserialization errors