|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.aether.util.repository.ConservativeAuthenticationSelector
public class ConservativeAuthenticationSelector
An authentication selector that delegates to another selector but only if a repository has no authentication data yet. If authentication has already been assigned to a repository, that is selected.
| Constructor Summary | |
|---|---|
ConservativeAuthenticationSelector(AuthenticationSelector selector)
Creates a new selector that delegates to the specified selector. |
|
| Method Summary | |
|---|---|
Authentication |
getAuthentication(RemoteRepository repository)
Selects authentication for the specified remote repository. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConservativeAuthenticationSelector(AuthenticationSelector selector)
selector - The selector to delegate to in case a repository has no authentication yet, must not be null.| Method Detail |
|---|
public Authentication getAuthentication(RemoteRepository repository)
AuthenticationSelector
getAuthentication in interface AuthenticationSelectorrepository - The repository for which to select authentication, must not be null.
null if none.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||