Class DefaultAuthenticationSelector
java.lang.Object
org.eclipse.aether.util.repository.DefaultAuthenticationSelector
- All Implemented Interfaces:
 AuthenticationSelector
A simple authentication selector that selects authentication based on repository identifiers.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionadd(String id, Authentication auth) Adds the specified authentication info for the given repository identifier.getAuthentication(RemoteRepository repository) Selects authentication for the specified remote repository. 
- 
Constructor Details
- 
DefaultAuthenticationSelector
public DefaultAuthenticationSelector() 
 - 
 - 
Method Details
- 
add
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
Description copied from interface:AuthenticationSelectorSelects authentication for the specified remote repository.- Specified by:
 getAuthenticationin interfaceAuthenticationSelector- Parameters:
 repository- The repository for which to select authentication, must not benull.- Returns:
 - The selected authentication or 
nullif none. 
 
 -