Class MockHttpAuthenticateContext<AC extends java.io.Serializable,​O extends java.lang.Enum<O>,​F extends java.lang.Enum<F>>

    • Constructor Detail

      • MockHttpAuthenticateContext

        public MockHttpAuthenticateContext()
        Initiate with no authorization HttpHeader.
      • MockHttpAuthenticateContext

        public MockHttpAuthenticateContext​(java.lang.String authorizationHeaderValue)
        Initiate.
        Parameters:
        authorizationHeaderValue - authorization HttpHeader value.
    • Method Detail

      • getAccessControl

        public AC getAccessControl()
        Obtains the registered access control.
        Returns:
        Access control.
      • getEscalation

        public java.lang.Throwable getEscalation()
        Obtains the registered escalation.
        Returns:
        Escalation.
      • accessControlChange

        public void accessControlChange​(AC accessControl,
                                        java.lang.Throwable escalation)
        Description copied from interface: AccessControlListener
        Notified of a change to access control.
        Specified by:
        accessControlChange in interface AccessControlListener<AC extends java.io.Serializable>
        Parameters:
        accessControl - Access control. May be null if
        • logging out
        • failure in authenticating
        escalation - Possible Escalation. Will be null if successfully obtain access control or logout.