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, wait
cached
public 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()
CredentialSupplier
get
in interface Supplier<String>
get
in interface CredentialSupplier
Copyright © 2016–2021 Pivotal Software, Inc.. All rights reserved.