public class Decision
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Decision |
allow()
Create an ALLOW decision.
|
static Decision |
challenge(ChallengeDecisionHandler handler)
Create a CHALLENGE decision with the specified handler.
|
static Decision |
deny(DenyDecisionHandler handler)
Create a DENY decision with the specified handler.
|
DecisionHandler |
getHandler()
Get the handler.
|
DecisionType |
getType()
Get the type.
|
public static Decision allow()
public static Decision deny(DenyDecisionHandler handler)
handler
- The handler.public static Decision challenge(ChallengeDecisionHandler handler)
handler
- The handler.public DecisionType getType()
public DecisionHandler getHandler()