Class SecurityContext

  • All Implemented Interfaces:
    Cloneable

    public class SecurityContext
    extends ModelNode
    Represents the RBAC related payload from the read-resource-description operation.
    • Field Detail

      • READ_ONLY

        public static final SecurityContext READ_ONLY
        A security context with hardcoded permissions to read resources, write and execute operations are not allowed.
      • RWX

        public static final SecurityContext RWX
        A security context with hardcoded permissions to read, write and execute any resource.
    • Constructor Detail

      • SecurityContext

        public SecurityContext​(ModelNode payload)
    • Method Detail

      • isReadable

        public boolean isReadable()
        Returns:
        whether the security context is readable
      • isWritable

        public boolean isWritable()
        Returns:
        whether the security context is writable
      • isReadable

        public boolean isReadable​(String attribute)
        Parameters:
        attribute - The attribute to check.
        Returns:
        whether the attribute is readable
      • isWritable

        public boolean isWritable​(String attribute)
        Parameters:
        attribute - The attribute to check.
        Returns:
        whether the attribute is writable
      • isExecutable

        public boolean isExecutable​(String operation)
        Parameters:
        operation - The operation to check.
        Returns:
        whether the operation is executable