Class AccessAssertionPersister


  • public final class AccessAssertionPersister
    extends java.lang.Object
    Class for marshaling and unmarshaling AccessAssertionObjects to and from JSON.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.json.JSONObject marshal​(AccessAssertion assertion)
      Marshal the assertion as a JSON object.
      AccessAssertion unmarshal​(org.json.JSONObject encodedAssertion)
      Load assertion from the provided json or throw exception if not possible.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AccessAssertionPersister

        public AccessAssertionPersister()
    • Method Detail

      • unmarshal

        public AccessAssertion unmarshal​(org.json.JSONObject encodedAssertion)
        Load assertion from the provided json or throw exception if not possible.
        Parameters:
        encodedAssertion - the assertion as it was encoded in JSON.
      • marshal

        public org.json.JSONObject marshal​(AccessAssertion assertion)
        Marshal the assertion as a JSON object.
        Parameters:
        assertion - the assertion to marshal