|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.util.repository.DefaultAuthenticationSelector
public class DefaultAuthenticationSelector
A simple authentication selector that selects authentication based on repository identifiers.
Constructor Summary | |
---|---|
DefaultAuthenticationSelector()
|
Method Summary | |
---|---|
DefaultAuthenticationSelector |
add(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultAuthenticationSelector()
Method Detail |
---|
public DefaultAuthenticationSelector add(java.lang.String id, Authentication auth)
id
- The identifier of the repository to add the authentication for, must not be null
.auth
- The authentication to add, must not 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |