Package org.springframework.credhub.core
Class CredHubProperties
java.lang.Object
org.springframework.credhub.core.CredHubProperties
Properties containing information about a CredHub server.
- Author:
- Scott Frederick, Daniel Lavoie
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProperties containing OAuth2 credentials for CredHub connectivity. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable CredHubProperties.OAuth2Get the OAuth2 properties.@Nullable StringgetUrl()Get the base URI for the CredHub server (scheme, host, and port).voidsetOauth2(CredHubProperties.OAuth2 oauth2) Set the OAuth2 properties.voidSet the base URI for the CredHub server (scheme, host, and port).
-
Constructor Details
-
CredHubProperties
public CredHubProperties()Create a new instance without initializing properties.
-
-
Method Details
-
getUrl
Get the base URI for the CredHub server (scheme, host, and port). This value will be prepended to all requests to CredHub.- Returns:
- the base URI
-
setUrl
Set the base URI for the CredHub server (scheme, host, and port). This value will be prepended to all requests to CredHub.- Parameters:
url- the base URI for the CredHub server
-
getOauth2
Get the OAuth2 properties.- Returns:
- the OAuth2 properties.
-
setOauth2
Set the OAuth2 properties.- Parameters:
oauth2- the OAuth2 properties
-