public class DefaultCredential extends Object implements ClientCredential
ClientCredential.| Modifier and Type | Field and Description |
|---|---|
static String |
HOSTNAME_PROPERTY |
static String |
KEY_PROPERTY |
static String |
USERNAME_PROPERTY |
| Constructor and Description |
|---|
DefaultCredential(String hostname,
String username,
String key)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHostname()
Gets the client hostname.
|
String |
getKey()
Gets the secret associated with the client token.
|
String |
getUsername()
Gets the username .
|
public static final String HOSTNAME_PROPERTY
public static final String USERNAME_PROPERTY
public static final String KEY_PROPERTY
public DefaultCredential(String hostname, String username, String key)
hostname - hostname name for the connectionusername - the usernamekey - the secret keyIllegalArgumentException - if any of the parameters is null or empty.public String getHostname()
public String getUsername()
getUsername in interface ClientCredentialpublic String getKey()
getKey in interface ClientCredentialCopyright © 2016. All rights reserved.