public final class Credentials
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Credentials.Scheme
Represents an authentication method.
|
Constructor and Description |
---|
Credentials(java.lang.String userName,
java.lang.String passphrase)
Create user/passphrase credentials for service authentication, or
simple/digest proxy authentication.
|
Credentials(java.lang.String userName,
java.lang.String passphrase,
java.lang.String domain,
java.lang.String workstation)
Create user/passphrase credentials for NTLM proxy authentication.
|
Credentials(java.security.cert.X509Certificate certificate)
Create credentials for service authentication using user certificates.
|
Modifier and Type | Method and Description |
---|---|
java.security.cert.X509Certificate |
getCertificate()
Get the certificate
|
java.lang.String |
getDomain()
Get the domain.
|
java.lang.String |
getPassphrase()
Get the passphrase.
|
Credentials.Scheme |
getScheme()
Get the authentication method.
|
java.lang.String |
getUserName()
Get the user name.
|
java.lang.String |
getWorkstation()
Get the workstation name.
|
public Credentials(java.lang.String userName, java.lang.String passphrase)
userName
- The user name (e-mail address) for the authenticating userpassphrase
- The passphrase for the authenticating userpublic Credentials(java.lang.String userName, java.lang.String passphrase, java.lang.String domain, java.lang.String workstation)
userName
- The user name (e-mail address) for the authenticating userpassphrase
- The passphrase for the authenticating userdomain
- The domain to be authenticated againstworkstation
- The name of the workstationpublic Credentials(java.security.cert.X509Certificate certificate)
certificate
- the certificatepublic Credentials.Scheme getScheme()
public java.lang.String getUserName()
public java.lang.String getPassphrase()
public java.lang.String getDomain()
public java.lang.String getWorkstation()
public java.security.cert.X509Certificate getCertificate()