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)
Selects authentication for the specified remote 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)
AuthenticationSelector
getAuthentication
in interface AuthenticationSelector
repository
- The repository for which to select authentication, must not be null
.null
if none.Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.