Class DefaultAuthenticationSelector
- java.lang.Object
-
- org.eclipse.aether.util.repository.DefaultAuthenticationSelector
-
- All Implemented Interfaces:
AuthenticationSelector
public final class DefaultAuthenticationSelector extends Object implements AuthenticationSelector
A simple authentication selector that selects authentication based on repository identifiers.
-
-
Constructor Summary
Constructors Constructor Description DefaultAuthenticationSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultAuthenticationSelector
add(String id, Authentication auth)
Adds the specified authentication info for the given repository identifier.Authentication
getAuthentication(RemoteRepository repository)
-
-
-
Constructor Detail
-
DefaultAuthenticationSelector
public DefaultAuthenticationSelector()
-
-
Method Detail
-
add
public DefaultAuthenticationSelector add(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 benull
.auth
- The authentication to add, may benull
.- Returns:
- This selector for chaining, never
null
.
-
getAuthentication
public Authentication getAuthentication(RemoteRepository repository)
- Specified by:
getAuthentication
in interfaceAuthenticationSelector
-
-