public final class AccessAssertionPersister
extends java.lang.Object
| Constructor and Description |
|---|
AccessAssertionPersister() |
| Modifier and Type | Method and 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.
|
public AccessAssertion unmarshal(org.json.JSONObject encodedAssertion)
encodedAssertion - the assertion as it was encoded in JSON.public org.json.JSONObject marshal(AccessAssertion assertion)
assertion - the assertion to marshal