Class ConfluenceSecretService
java.lang.Object
com.atlassian.confluence.impl.security.ConfluenceSecretService
- All Implemented Interfaces:
com.atlassian.secrets.api.SecretService
public class ConfluenceSecretService
extends Object
implements com.atlassian.secrets.api.SecretService
This class acts a wrapper to Lazily construct the SecretService when it is first used.
- Since:
- 9.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.secrets.api.SecretService
com.atlassian.secrets.api.SecretService.SecretServiceManagement
-
Field Summary
FieldsFields inherited from interface com.atlassian.secrets.api.SecretService
SECRET_SERVICE_STATE_SYSTEM_PROP
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes the delegate with a lazily evaluated reference to a SecretService built bybuildSecretService()
; -
Method Summary
Modifier and TypeMethodDescriptionvoid
com.atlassian.secrets.api.SecretServiceConfiguration
com.atlassian.secrets.api.SecretService.SecretServiceManagement
void
void
reset()
Reset the delegate reference so the next time it is used the SecretService will be created again.
-
Field Details
-
SECRET_PLACEHOLDER
- See Also:
-
-
Constructor Details
-
ConfluenceSecretService
public ConfluenceSecretService()Initializes the delegate with a lazily evaluated reference to a SecretService built bybuildSecretService()
;
-
-
Method Details
-
reset
public void reset()Reset the delegate reference so the next time it is used the SecretService will be created again. -
put
public void put(String identifier, String secretData) throws com.atlassian.secrets.api.SecretServiceException - Specified by:
put
in interfacecom.atlassian.secrets.api.SecretService
- Throws:
com.atlassian.secrets.api.SecretServiceException
-
get
public Optional<String> get(String identifier) throws com.atlassian.secrets.api.SecretServiceException - Specified by:
get
in interfacecom.atlassian.secrets.api.SecretService
- Throws:
com.atlassian.secrets.api.SecretServiceException
-
delete
- Specified by:
delete
in interfacecom.atlassian.secrets.api.SecretService
- Throws:
com.atlassian.secrets.api.SecretServiceException
-
getConfiguration
public com.atlassian.secrets.api.SecretServiceConfiguration getConfiguration()- Specified by:
getConfiguration
in interfacecom.atlassian.secrets.api.SecretService
-
getManagement
public com.atlassian.secrets.api.SecretService.SecretServiceManagement getManagement()- Specified by:
getManagement
in interfacecom.atlassian.secrets.api.SecretService
-