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
The result of an authentication request.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
static final class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Authorizer.Result
static Authorizer.Result
grant()
static Authorizer.Result
ignore()
boolean
isDenied()
boolean
toString()
-
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
-