|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.aether.repository.Authentication
public final class Authentication
The authentication to use for accessing a protected resource. Note: Instances of this class are immutable and the exposed mutators return new objects rather than changing the current instance.
| Constructor Summary | |
|---|---|
Authentication(java.lang.String username,
java.lang.String password)
Creates a basic username+password authentication. |
|
Authentication(java.lang.String username,
java.lang.String password,
java.lang.String privateKeyFile,
java.lang.String passphrase)
Creates a new authentication with the specified properties |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getPassphrase()
Gets the passphrase for the private key. |
java.lang.String |
getPassword()
Gets the password. |
java.lang.String |
getPrivateKeyFile()
Gets the path to the private key file to use for authentication. |
java.lang.String |
getUsername()
Gets the username. |
int |
hashCode()
|
Authentication |
setPassphrase(java.lang.String passphrase)
Sets the passphrase for the private key file. |
Authentication |
setPassword(java.lang.String password)
Sets the password to use for authentication. |
Authentication |
setPrivateKeyFile(java.lang.String privateKeyFile)
Sets the path to the private key file to use for authentication. |
Authentication |
setUsername(java.lang.String username)
Sets the username to use for authentication. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Authentication(java.lang.String username,
java.lang.String password,
java.lang.String privateKeyFile,
java.lang.String passphrase)
username - The username, may be null.password - The password, may be null.privateKeyFile - The path to the private key file, may be null.passphrase - The passphrase for the private key file, may be null.
public Authentication(java.lang.String username,
java.lang.String password)
username - The username, may be null.password - The password, may be null.| Method Detail |
|---|
public java.lang.String getUsername()
null if none.public Authentication setUsername(java.lang.String username)
username - The username, may be null.
null.public java.lang.String getPassword()
null if none.public Authentication setPassword(java.lang.String password)
password - The password, may be null.
null.public java.lang.String getPrivateKeyFile()
null if none.public Authentication setPrivateKeyFile(java.lang.String privateKeyFile)
privateKeyFile - The path to the private key file, may be null.
null.public java.lang.String getPassphrase()
null if none.public Authentication setPassphrase(java.lang.String passphrase)
passphrase - The passphrase for the private key file, may be null.
null.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||