Class DefaultAuthenticationSelector

java.lang.Object
org.eclipse.aether.util.repository.DefaultAuthenticationSelector
All Implemented Interfaces:
org.eclipse.aether.repository.AuthenticationSelector

public final class DefaultAuthenticationSelector extends Object implements org.eclipse.aether.repository.AuthenticationSelector
A simple authentication selector that selects authentication based on repository identifiers.
  • Constructor Details

  • Method Details

    • add

      public DefaultAuthenticationSelector add(String id, org.eclipse.aether.repository.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.
    • getAuthentication

      public org.eclipse.aether.repository.Authentication getAuthentication(org.eclipse.aether.repository.RemoteRepository repository)
      Specified by:
      getAuthentication in interface org.eclipse.aether.repository.AuthenticationSelector