public final class ConservativeAuthenticationSelector extends Object implements AuthenticationSelector
Constructor and Description |
---|
ConservativeAuthenticationSelector(AuthenticationSelector selector)
Creates a new selector that delegates to the specified selector.
|
Modifier and Type | Method and Description |
---|---|
Authentication |
getAuthentication(RemoteRepository repository)
Selects authentication for the specified remote repository.
|
public ConservativeAuthenticationSelector(AuthenticationSelector selector)
selector
- The selector to delegate to in case a repository has no authentication yet, must not be
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–2021 The Apache Software Foundation. All rights reserved.