Class CredHubTemplateFactory
java.lang.Object
org.springframework.credhub.configuration.CredHubTemplateFactory
Factory for
CredHubTemplate
used to communicate with CredHub.- Author:
- Scott Frederick, Daniel Lavoie
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncredHubTemplate
(CredHubProperties credHubProperties, ClientOptions clientOptions) Create aCredHubTemplate
for interaction with a CredHub server.credHubTemplate
(CredHubProperties credHubProperties, ClientOptions clientOptions, org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository, org.springframework.security.oauth2.client.OAuth2AuthorizedClientManager clientManager) Create aCredHubTemplate
for interaction with a CredHub server using OAuth2 for authentication.credHubTemplate
(CredHubProperties credHubProperties, ClientOptions clientOptions, org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository, org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository authorizedClientRepository) Create aCredHubTemplate
for interaction with a CredHub server using OAuth2 for authentication.reactiveCredHubTemplate
(CredHubProperties credHubProperties, ClientOptions clientOptions) Create aReactiveCredHubTemplate
for interaction with a CredHub server.reactiveCredHubTemplate
(CredHubProperties credHubProperties, ClientOptions clientOptions, org.springframework.security.oauth2.client.ReactiveOAuth2AuthorizedClientManager clientManager) Create aReactiveCredHubTemplate
for interaction with a CredHub server using OAuth2 for authentication.reactiveCredHubTemplate
(CredHubProperties credHubProperties, ClientOptions clientOptions, org.springframework.security.oauth2.client.registration.ReactiveClientRegistrationRepository clientRegistrationRepository, org.springframework.security.oauth2.client.web.server.ServerOAuth2AuthorizedClientRepository authorizedClientRepository) Create aReactiveCredHubTemplate
for interaction with a CredHub server using OAuth2 for authentication.
-
Constructor Details
-
CredHubTemplateFactory
public CredHubTemplateFactory()
-
-
Method Details
-
credHubTemplate
public CredHubTemplate credHubTemplate(CredHubProperties credHubProperties, ClientOptions clientOptions) Create aCredHubTemplate
for interaction with a CredHub server.- Parameters:
credHubProperties
- connection propertiesclientOptions
- connection options- Returns:
- a
CredHubTemplate
-
credHubTemplate
public CredHubTemplate credHubTemplate(CredHubProperties credHubProperties, ClientOptions clientOptions, org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository, org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository authorizedClientRepository) Create aCredHubTemplate
for interaction with a CredHub server using OAuth2 for authentication.- Parameters:
credHubProperties
- connection propertiesclientOptions
- connection optionsclientRegistrationRepository
- a repository of OAuth2 client registrationsauthorizedClientRepository
- a repository of authorized OAuth2 clients- Returns:
- a
CredHubTemplate
-
credHubTemplate
public CredHubOperations credHubTemplate(CredHubProperties credHubProperties, ClientOptions clientOptions, org.springframework.security.oauth2.client.registration.ClientRegistrationRepository clientRegistrationRepository, org.springframework.security.oauth2.client.OAuth2AuthorizedClientManager clientManager) Create aCredHubTemplate
for interaction with a CredHub server using OAuth2 for authentication.- Parameters:
credHubProperties
- connection propertiesclientOptions
- connection optionsclientRegistrationRepository
- a repository of OAuth2 client registrationsclientManager
- an OAuth2 authorization client manager- Returns:
- a
CredHubTemplate
-
reactiveCredHubTemplate
public ReactiveCredHubTemplate reactiveCredHubTemplate(CredHubProperties credHubProperties, ClientOptions clientOptions) Create aReactiveCredHubTemplate
for interaction with a CredHub server.- Parameters:
credHubProperties
- connection propertiesclientOptions
- connection options- Returns:
- a
ReactiveCredHubTemplate
-
reactiveCredHubTemplate
public ReactiveCredHubOperations reactiveCredHubTemplate(CredHubProperties credHubProperties, ClientOptions clientOptions, org.springframework.security.oauth2.client.registration.ReactiveClientRegistrationRepository clientRegistrationRepository, org.springframework.security.oauth2.client.web.server.ServerOAuth2AuthorizedClientRepository authorizedClientRepository) Create aReactiveCredHubTemplate
for interaction with a CredHub server using OAuth2 for authentication.- Parameters:
credHubProperties
- connection propertiesclientOptions
- connection optionsclientRegistrationRepository
- a repository of OAuth2 client registrationsauthorizedClientRepository
- a repository of OAuth2 client authorizations- Returns:
- a
ReactiveCredHubTemplate
-
reactiveCredHubTemplate
public ReactiveCredHubOperations reactiveCredHubTemplate(CredHubProperties credHubProperties, ClientOptions clientOptions, org.springframework.security.oauth2.client.ReactiveOAuth2AuthorizedClientManager clientManager) Create aReactiveCredHubTemplate
for interaction with a CredHub server using OAuth2 for authentication.- Parameters:
credHubProperties
- connection propertiesclientOptions
- connection optionsclientManager
- an OAuth2 authorization client manager- Returns:
- a
ReactiveCredHubTemplate
-