Package org.apache.geode.security
Class NotAuthorizedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.geode.GemFireException
org.apache.geode.security.GemFireSecurityException
org.apache.geode.security.NotAuthorizedException
- All Implemented Interfaces:
Serializable
Thrown when a client/peer is unauthorized to perform a requested operation.
- Since:
- GemFire 5.5
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNotAuthorizedException(String message) Constructs a new exception with the specified detail message and principal.NotAuthorizedException(String message, Throwable cause) Constructs a new exception with the specified detail message and cause.NotAuthorizedException(String message, Throwable cause, Principal principal) Constructs a new exception with the specified detail message, cause and principal.NotAuthorizedException(String message, Principal principal) Constructs a new exception with the specified detail message and principal. -
Method Summary
Modifier and TypeMethodDescriptionReturns theprincipalfor which authorization failed.Methods inherited from class org.apache.geode.security.GemFireSecurityException
getCause, getResolvedObj, isSerializableMethods inherited from class org.apache.geode.GemFireException
getRootCauseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NotAuthorizedException
Constructs a new exception with the specified detail message and principal.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method). (A null value is permitted.)
-
NotAuthorizedException
Constructs a new exception with the specified detail message and cause.If
messageis null, then the detail message associated withcauseis automatically used as this exception's detail message.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method). (A null value is permitted.)cause- the cause (which is saved for later retrieval by theGemFireSecurityException.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
NotAuthorizedException
Constructs a new exception with the specified detail message and principal.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method). (A null value is permitted.)principal- the principal for which authorization failed. (A null value is permitted.)
-
NotAuthorizedException
Constructs a new exception with the specified detail message, cause and principal.If
messageis null, then the detail message associated withcauseis automatically used as this exception's detail message.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method). (A null value is permitted.)cause- the cause (which is saved for later retrieval by theGemFireSecurityException.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.)
-
-
Method Details
-
getPrincipal
Returns theprincipalfor which authorization failed.- Returns:
- the
principalfor which authorization failed.
-