Class AccessDeniedDetails

java.lang.Object
com.netflix.spinnaker.kork.api.exceptions.AccessDeniedDetails
All Implemented Interfaces:
ExceptionDetails

public class AccessDeniedDetails extends 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 Details

    • AccessDeniedDetails

      public AccessDeniedDetails(String resourceType, String resourceName, @Nullable String authorization)
  • Method Details

    • getResourceType

      public String getResourceType()
    • getResourceName

      public String getResourceName()
    • getAuthorization

      @Nullable public String getAuthorization()
    • hasAuthorization

      public boolean hasAuthorization()