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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds the specified authentication info for the given repository identifier.org.eclipse.aether.repository.Authentication
getAuthentication
(org.eclipse.aether.repository.RemoteRepository repository)
-
Constructor Details
-
DefaultAuthenticationSelector
public DefaultAuthenticationSelector()
-
-
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 benull
.auth
- The authentication to add, may benull
.- 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 interfaceorg.eclipse.aether.repository.AuthenticationSelector
-