Class Decision


  • public class Decision
    extends java.lang.Object
    This class represents a decision.
    • Method Detail

      • allow

        public static Decision allow()
        Create an ALLOW decision.
        Returns:
        An ALLOW decision.
      • deny

        public static Decision deny​(DenyDecisionHandler handler)
        Create a DENY decision with the specified handler.
        Parameters:
        handler - The handler.
        Returns:
        A DENY decision.
      • challenge

        public static Decision challenge​(ChallengeDecisionHandler handler)
        Create a CHALLENGE decision with the specified handler.
        Parameters:
        handler - The handler.
        Returns:
        A CHALLENGE decision.
      • getType

        public DecisionType getType()
        Get the type.
        Returns:
        The type.
      • getHandler

        public DecisionHandler getHandler()
        Get the handler.
        Returns:
        The handler.