public interface AccessAssertion extends ConfigurationObject
All implementations must be serializable.
| Modifier and Type | Method and Description |
|---|---|
void |
assertAccess(java.lang.String resourceDescription,
java.lang.Object protectedResource)
Checks that the user can access the resource.
|
AccessAssertion |
copy()
Deep copy of this access assertion.
|
org.json.JSONObject |
marshal()
Encode the assertion as JSON for later loading.
|
void |
unmarshal(org.json.JSONObject encodedAssertion)
Load the assertion properties from the JSON data.
|
validatevoid assertAccess(java.lang.String resourceDescription,
java.lang.Object protectedResource)
AuthenticationCredentialsNotFoundException
if the user has not logged in or supplied credentials.
Will throw AccessDeniedException if the user is logged in
but may not access the resource.resourceDescription - a string describing the resource for logging and exception throwing
purposesprotectedResource - the resource being protected.org.json.JSONObject marshal()
void unmarshal(org.json.JSONObject encodedAssertion)
encodedAssertion - the assertion encoded as JSON.AccessAssertion copy()