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
Modifier and TypeClassDescriptionstatic class
Properties containing OAuth2 credentials for CredHub connectivity. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the OAuth2 properties.getUrl()
Get the base URI for the CredHub server (scheme, host, and port).void
setOauth2
(CredHubProperties.OAuth2 oauth2) Set the OAuth2 properties.void
Set 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
-