Class AccessControlContext

  • All Implemented Interfaces:
    Iterable<org.opensaml.messaging.context.BaseContext>

    public final class AccessControlContext
    extends org.opensaml.messaging.context.BaseContext
    A context component which holds state for making an access control decision using the AccessControl interface.
    Since:
    3.3.0
    • Field Detail

      • operation

        @Nullable
        private String operation
        The operation.
      • resource

        @Nullable
        private String resource
        The resource.
    • Constructor Detail

      • AccessControlContext

        public AccessControlContext()
    • Method Detail

      • getOperation

        @Nullable
        public String getOperation()
        Get the operation being performed.
        Returns:
        the operation
      • setOperation

        @Nonnull
        public AccessControlContext setOperation​(@Nullable
                                                 String op)
        Set the operation being performed.
        Parameters:
        op - the operation
        Returns:
        this context
      • getResource

        @Nullable
        public String getResource()
        Get the resource being operated on.
        Returns:
        the resource
      • setResource

        @Nonnull
        public AccessControlContext setResource​(@Nullable
                                                String res)
        Set the resource being operated on.
        Parameters:
        res - the resource
        Returns:
        this context