public final class DefaultAuthenticationSelector extends Object implements AuthenticationSelector
| Constructor and Description |
|---|
DefaultAuthenticationSelector() |
| Modifier and Type | Method and Description |
|---|---|
DefaultAuthenticationSelector |
add(String id,
Authentication auth)
Adds the specified authentication info for the given repository identifier.
|
Authentication |
getAuthentication(RemoteRepository repository) |
public DefaultAuthenticationSelector()
public DefaultAuthenticationSelector add(String id, Authentication auth)
id - The identifier of the repository to add the authentication for, must not be null.auth - The authentication to add, may be null.null.public Authentication getAuthentication(RemoteRepository repository)
getAuthentication in interface AuthenticationSelectorCopyright © 2010–2021 The Apache Software Foundation. All rights reserved.