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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionAdds the specified authentication info for the given repository identifier.org.eclipse.aether.repository.AuthenticationgetAuthentication(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 benullauth- 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:
 getAuthenticationin interfaceorg.eclipse.aether.repository.AuthenticationSelector
 
 -