public class NotAuthorizedException extends GemFireSecurityException
Constructor and Description |
---|
NotAuthorizedException(java.lang.String message)
Constructs a new exception with the specified detail message and
principal.
|
NotAuthorizedException(java.lang.String message,
java.security.Principal principal)
Constructs a new exception with the specified detail message and
principal.
|
NotAuthorizedException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause.
|
NotAuthorizedException(java.lang.String message,
java.lang.Throwable cause,
java.security.Principal principal)
Constructs a new exception with the specified detail message, cause and
principal.
|
Modifier and Type | Method and Description |
---|---|
java.security.Principal |
getPrincipal()
Returns the
principal for which authorization failed. |
getCause, getResolvedObj, isSerializable
getRootCause
public NotAuthorizedException(java.lang.String message)
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method). (A null value
is permitted.)public NotAuthorizedException(java.lang.String message, java.lang.Throwable cause)
If message
is null, then the detail message associated with
cause
is automatically used as this exception's detail
message.
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method). (A null value
is permitted.)cause
- the cause (which is saved for later retrieval by the
GemFireSecurityException.getCause()
method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)public NotAuthorizedException(java.lang.String message, java.security.Principal principal)
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method). (A null value
is permitted.)principal
- the principal for which authorization failed.
(A null value is permitted.)public NotAuthorizedException(java.lang.String message, java.lang.Throwable cause, java.security.Principal principal)
If message
is null, then the detail message associated with
cause
is automatically used as this exception's detail
message.
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method). (A null value
is permitted.)cause
- the cause (which is saved for later retrieval by the
GemFireSecurityException.getCause()
method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)principal
- the principal for which authorization failed.
(A null value is permitted.)