public interface CredentialsProvider
CredentialsRefreshService
Modifier and Type | Method and Description |
---|---|
String |
getPassword()
Password/secret/token to use for authentication
|
default Duration |
getTimeBeforeExpiration()
The time before the credentials expire, if they do expire.
|
String |
getUsername()
Username to use for authentication
|
default void |
refresh()
Instructs the provider to refresh or renew credentials.
|
String getUsername()
String getPassword()
default Duration getTimeBeforeExpiration()
If credentials do not expire, must return null. Default behavior is to return null, assuming credentials never expire.
default void refresh()
Default behavior is no-op.
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.