public class ResourceCredentialSupplier extends Object implements CredentialSupplier
Resource.CredentialSupplier| Constructor and Description |
|---|
ResourceCredentialSupplier(File file)
|
ResourceCredentialSupplier(Resource resource)
|
ResourceCredentialSupplier(String path)
|
| Modifier and Type | Method and Description |
|---|---|
String |
get()
Get a credential to be used with an authentication mechanism.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcachedpublic ResourceCredentialSupplier(String path)
path - path to the file holding the credential.IllegalArgumentException - if thepath does not exist.public ResourceCredentialSupplier(File file)
file - path to the file holding the credential.IllegalArgumentException - if thepath does not exist.public ResourceCredentialSupplier(Resource resource)
resource - resource pointing to the resource holding the credential.IllegalArgumentException - if the Resource does not exist.public String get()
CredentialSupplierget in interface Supplier<String>get in interface CredentialSupplierCopyright © 2016–2020 Pivotal Software, Inc.. All rights reserved.