Package org.cometd.bayeux.server
Class Authorizer.Result
java.lang.Object
org.cometd.bayeux.server.Authorizer.Result
- Direct Known Subclasses:
Authorizer.Result.Denied
,Authorizer.Result.Granted
,Authorizer.Result.Ignored
- Enclosing interface:
- Authorizer
public abstract static class Authorizer.Result
extends java.lang.Object
The result of an authentication request.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Authorizer.Result.Denied
static class
Authorizer.Result.Granted
static class
Authorizer.Result.Ignored
-
Constructor Summary
Constructors Constructor Description Result()
-
Method Summary
Modifier and Type Method Description static Authorizer.Result
deny(java.lang.String reason)
static Authorizer.Result
grant()
static Authorizer.Result
ignore()
boolean
isDenied()
boolean
isGranted()
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Result
public Result()
-
-
Method Details
-
deny
- Parameters:
reason
- the reason for which the authorization is denied- Returns:
- a result that denies the authorization
-
grant
- Returns:
- a result that grants the authorization
-
ignore
- Returns:
- a result that ignores the authorization, leaving the decision to other
Authorizer
s.
-
isDenied
public boolean isDenied() -
isGranted
public boolean isGranted() -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-