Package io.continual.iam.access
Class AclChecker
java.lang.Object
io.continual.iam.access.AclChecker
An ACL checker for convenience
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck()Check the user's access.creating()deleting()onResource(String resource) Label the resource for use in an access exception message.performing(String op) reading()updating()
-
Constructor Details
-
AclChecker
public AclChecker()
-
-
Method Details
-
forUser
-
reading
-
updating
-
creating
-
deleting
-
performing
-
onResource
Label the resource for use in an access exception message.- Parameters:
resource- a resource label- Returns:
- this checker
-
controlledByAcl
-
check
Check the user's access. If not allowed, AccessException is thrown.- Throws:
AccessException- thrown if user is not permittedIamSvcException- thrown on a processing error in the IAM subsystem
-