public final class DefaultAuthenticationSelector extends Object implements org.eclipse.aether.repository.AuthenticationSelector
Constructor and Description |
---|
DefaultAuthenticationSelector() |
Modifier and Type | Method and Description |
---|---|
DefaultAuthenticationSelector |
add(String id,
org.eclipse.aether.repository.Authentication auth)
Adds the specified authentication info for the given repository identifier.
|
org.eclipse.aether.repository.Authentication |
getAuthentication(org.eclipse.aether.repository.RemoteRepository repository) |
public DefaultAuthenticationSelector()
public DefaultAuthenticationSelector add(String id, org.eclipse.aether.repository.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 org.eclipse.aether.repository.Authentication getAuthentication(org.eclipse.aether.repository.RemoteRepository repository)
getAuthentication
in interface org.eclipse.aether.repository.AuthenticationSelector
Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.