Class NotAuthorizedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
oracle.dbtools.plugin.api.security.NotAuthorizedException
- All Implemented Interfaces:
Serializable
Raised whenever a resource is accessed that the current user does not have
permission to access.
- Author:
- cdivilly
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNotAuthorizedException(String authorizationConstaintName) Raises aNotAuthorizedExceptioncondition requiring the user to have authenticated against theAuthorizationConstraint, chaining thecauseparameter as the underlying cause of the authorization failure.NotAuthorizedException(String authorizationConstraintName, AuthorizationError error, Throwable cause) Raises aNotAuthorizedExceptioncondition requiring the user to have authenticated against the specified Privilege. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
NotAuthorizedException
public NotAuthorizedException(String authorizationConstraintName, AuthorizationError error, Throwable cause) Raises aNotAuthorizedExceptioncondition requiring the user to have authenticated against the specified Privilege.- Parameters:
authorizationConstraintName- The name of theAuthorizationConstraintthat the principal was authorized againsterror-AuthorizationErrorexplaining the reason for the authorization failure. May be null.cause- The underlying cause of the authorization failure.
-
NotAuthorizedException
Raises aNotAuthorizedExceptioncondition requiring the user to have authenticated against theAuthorizationConstraint, chaining thecauseparameter as the underlying cause of the authorization failure.- Parameters:
authorizationConstaintName- The name of theAuthorizationConstraintthat this principal failed authorization for.
-
-
Method Details
-
error
TheAuthorizationError.- Returns:
AuthorizationErrorinstance or null, if no error reason specified.
-
toString
-