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 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)
AuthenticationSelectorgetAuthentication in interface AuthenticationSelectorrepository - The repository for which to select authentication, must not be null.null if none.Copyright © 2010-2014 The Eclipse Foundation. All Rights Reserved.