Class AccessDeniedDetails

  • All Implemented Interfaces:
    ExceptionDetails

    public class AccessDeniedDetails
    extends java.lang.Object
    implements ExceptionDetails
    Details regarding an access denied exception.

    TODO(jonsie): We need to migrate fiat-api into a kork module (like kork-authz) so that we can create a proper fiat-api module which would provide things like Fiat's Authorization and ResourceType objects. For now, this object just uses strings to represent resource type and authorization, but eventually should support types provided from fiat-api.

    • Constructor Detail

      • AccessDeniedDetails

        public AccessDeniedDetails​(java.lang.String resourceType,
                                   java.lang.String resourceName,
                                   @Nullable
                                   java.lang.String authorization)
    • Method Detail

      • getResourceType

        public java.lang.String getResourceType()
      • getResourceName

        public java.lang.String getResourceName()
      • getAuthorization

        @Nullable
        public java.lang.String getAuthorization()
      • hasAuthorization

        public boolean hasAuthorization()