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 TypeMethodDescriptionvoidcom.atlassian.secrets.api.SecretServiceConfigurationcom.atlassian.secrets.api.SecretService.SecretServiceManagementvoidvoidreset()Reset the delegate reference so the next time it is used the SecretService will be created again.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.secrets.api.SecretService
delete, get, put
-
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:
putin 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:
getin interfacecom.atlassian.secrets.api.SecretService- Throws:
com.atlassian.secrets.api.SecretServiceException
-
delete
- Specified by:
deletein interfacecom.atlassian.secrets.api.SecretService- Throws:
com.atlassian.secrets.api.SecretServiceException
-
getConfiguration
public com.atlassian.secrets.api.SecretServiceConfiguration getConfiguration()- Specified by:
getConfigurationin interfacecom.atlassian.secrets.api.SecretService
-
getManagement
public com.atlassian.secrets.api.SecretService.SecretServiceManagement getManagement()- Specified by:
getManagementin interfacecom.atlassian.secrets.api.SecretService
-