public class NotAuthorizedException extends RuntimeException
Constructor and Description |
---|
NotAuthorizedException(String authorizationConstaintName)
Raises a
NotAuthorizedException condition requiring the user to
have authenticated against the AuthorizationConstraint , chaining
the cause parameter as the underlying cause of the
authorization failure. |
NotAuthorizedException(String authorizationConstraintName,
AuthorizationError error,
Throwable cause)
Raises a
NotAuthorizedException condition requiring the user to
have authenticated against the specified Privilege. |
Modifier and Type | Method and Description |
---|---|
AuthorizationError |
error()
The
AuthorizationError . |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public NotAuthorizedException(String authorizationConstraintName, AuthorizationError error, Throwable cause)
NotAuthorizedException
condition requiring the user to
have authenticated against the specified Privilege.authorizationConstraintName
- The name of the AuthorizationConstraint
that the principal
was authorized againsterror
- AuthorizationError
explaining the reason for the
authorization failure. May be null.cause
- The underlying cause of the authorization failure.public NotAuthorizedException(String authorizationConstaintName)
NotAuthorizedException
condition requiring the user to
have authenticated against the AuthorizationConstraint
, chaining
the cause
parameter as the underlying cause of the
authorization failure.authorizationConstaintName
- The name of the AuthorizationConstraint
that this
principal failed authorization for.public AuthorizationError error()
AuthorizationError
.AuthorizationError
instance or null, if no error reason
specified.Oracle REST Data Services Plugin API version: 3.0.0.65.09.35 Copyright © 2015 Oracle Corp. All Rights Reserved.