public class CfCredentials extends Object
| Constructor and Description |
|---|
CfCredentials(Map<String,Object> credentialsData) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getDerivedCredentials()
Get a map that contains credentials derived from the credentials map
|
String |
getHost()
Return the host, under the keys 'host' and 'hostname' in the credential map.
|
Map<String,Object> |
getMap() |
String |
getName() |
String |
getPassword()
Return the password, under the key 'password' in the credential map.
|
String |
getPort()
Return the port, under the key 'port' in the credential map.
|
String |
getString(String... keys) |
String |
getUri(String... uriSchemes)
Return the URI field, by default look under the field name 'uri' and 'url', but
also optionally look in field names that begin with the uriScheme and are suffixed
with 'Uri', 'uri', 'Url' and 'url'
|
UriInfo |
getUriInfo()
Return UriInfo derived from the field 'uri' or 'url'
|
UriInfo |
getUriInfo(String uriScheme)
Return UriInfo derived from URI field
|
String |
getUsername()
Return the username, under the keys 'username' and 'user' in the credential map.
|
public Map<String,String> getDerivedCredentials()
public String getHost()
public String getPort()
public String getName()
public String getUsername()
public String getPassword()
public String getUri(String... uriSchemes)
uriSchemes - optional list of uri scheme names to use as a prefix for an
expanded search of the uri fieldpublic UriInfo getUriInfo()
public UriInfo getUriInfo(String uriScheme)
uriScheme - a uri scheme name to use as a prefix to search of the uri fieldCopyright © 2019 Pivotal Software, Inc.. All rights reserved.