Class ConservativeAuthenticationSelector

  • All Implemented Interfaces:
    AuthenticationSelector

    public final class ConservativeAuthenticationSelector
    extends java.lang.Object
    implements AuthenticationSelector
    An authentication selector that delegates to another selector but only if a repository has no authentication data yet. If authentication has already been assigned to a repository, that is selected.
    • Constructor Detail

      • ConservativeAuthenticationSelector

        public ConservativeAuthenticationSelector​(AuthenticationSelector selector)
        Creates a new selector that delegates to the specified selector.
        Parameters:
        selector - The selector to delegate to in case a repository has no authentication yet, must not be null.