Class AuthorizationCheckException

    • Constructor Detail

      • AuthorizationCheckException

        public AuthorizationCheckException​(String msg,
                                           Principal authorizationPrincipal,
                                           Permission failedPermission)
        Constructs a new AuthorizationException instance with an initial message. No cause is specified.
        Parameters:
        msg - the message
        authorizationPrincipal - the principal that failed the authorization check
        failedPermission - the permission that failed the authorization check
      • AuthorizationCheckException

        public AuthorizationCheckException​(String msg,
                                           Throwable cause,
                                           Principal authorizationPrincipal,
                                           Permission failedPermission)
        Constructs a new AuthorizationException instance with an initial message and cause.
        Parameters:
        msg - the message
        cause - the cause
        authorizationPrincipal - the principal that failed the authorization check
        failedPermission - the permission that failed the authorization check
    • Method Detail

      • getFailedPermission

        public Permission getFailedPermission()
        Get the permission that failed the authorization check.
        Returns:
        the permission that failed the authorization check