|
||||||||||
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(String username,
char[] password)
Creates a basic username+password authentication. |
|
Authentication(String username,
char[] password,
String privateKeyFile,
char[] passphrase)
Creates a new authentication with the specified properties |
|
Authentication(String username,
String password)
Creates a basic username+password authentication. |
|
Authentication(String username,
String password,
String privateKeyFile,
String passphrase)
Creates a new authentication with the specified properties |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getPassphrase()
Gets the passphrase for the private key. |
String |
getPassword()
Gets the password. |
String |
getPrivateKeyFile()
Gets the path to the private key file to use for authentication. |
String |
getUsername()
Gets the username. |
int |
hashCode()
|
Authentication |
setPassphrase(char[] passphrase)
Sets the passphrase for the private key file. |
Authentication |
setPassphrase(String passphrase)
Sets the passphrase for the private key file. |
Authentication |
setPassword(char[] password)
Sets the password to use for authentication. |
Authentication |
setPassword(String password)
Sets the password to use for authentication. |
Authentication |
setPrivateKeyFile(String privateKeyFile)
Sets the path to the private key file to use for authentication. |
Authentication |
setUsername(String username)
Sets the username to use for authentication. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Authentication(String username, char[] password, String privateKeyFile, char[] 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(String username, String password, String privateKeyFile, 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(String username, String password)
username
- The username, may be null
.password
- The password, may be null
.public Authentication(String username, char[] password)
username
- The username, may be null
.password
- The password, may be null
.Method Detail |
---|
public String getUsername()
null
if none.public Authentication setUsername(String username)
username
- The username, may be null
.
null
.public String getPassword()
null
if none.public Authentication setPassword(String password)
password
- The password, may be null
.
null
.public Authentication setPassword(char[] password)
password
- The password, may be null
.
null
.public String getPrivateKeyFile()
null
if none.public Authentication setPrivateKeyFile(String privateKeyFile)
privateKeyFile
- The path to the private key file, may be null
.
null
.public String getPassphrase()
null
if none.public Authentication setPassphrase(String passphrase)
passphrase
- The passphrase for the private key file, may be null
.
null
.public Authentication setPassphrase(char[] passphrase)
passphrase
- The passphrase for the private key file, may be null
.
null
.public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |