Class DefaultAuthenticationSelector

  • All Implemented Interfaces:
    AuthenticationSelector

    public final class DefaultAuthenticationSelector
    extends java.lang.Object
    implements AuthenticationSelector
    A simple authentication selector that selects authentication based on repository identifiers.
    • Field Detail

      • repos

        private final java.util.Map<java.lang.String,​Authentication> repos
    • Constructor Detail

      • DefaultAuthenticationSelector

        public DefaultAuthenticationSelector()
    • Method Detail

      • add

        public DefaultAuthenticationSelector add​(java.lang.String id,
                                                 Authentication auth)
        Adds the specified authentication info for the given repository identifier.
        Parameters:
        id - The identifier of the repository to add the authentication for, must not be null.
        auth - The authentication to add, may be null.
        Returns:
        This selector for chaining, never null.