Interface ContextualAuthenticationPolicyFactory<T>

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ContextualAuthenticationPolicyFactory<T>
    A factory for producing (stateful) authentication policies based on arbitrary context data. This component provides a way to inject stateless factories into components that produce stateful authentication policies that can leverage arbitrary contextual information to evaluate security policy.
    Since:
    4.0.0
    • Method Detail

      • createPolicy

        ContextualAuthenticationPolicy<T> createPolicy​(T context)
        Creates a contextual (presumably stateful) authentication policy based on provided context data.
        Parameters:
        context - Context data used to create an authentication policy.
        Returns:
        Contextual authentication policy object. The returned object should be assumed to be stateful and not thread safe unless explicitly noted otherwise.