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
  • Field Details

  • Constructor Details

    • ConfluenceSecretService

      public ConfluenceSecretService()
      Initializes the delegate with a lazily evaluated reference to a SecretService built by buildSecretService();
  • 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 interface com.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 interface com.atlassian.secrets.api.SecretService
      Throws:
      com.atlassian.secrets.api.SecretServiceException
    • delete

      public void delete(String identifier) throws com.atlassian.secrets.api.SecretServiceException
      Specified by:
      delete in interface com.atlassian.secrets.api.SecretService
      Throws:
      com.atlassian.secrets.api.SecretServiceException
    • getConfiguration

      public com.atlassian.secrets.api.SecretServiceConfiguration getConfiguration()
      Specified by:
      getConfiguration in interface com.atlassian.secrets.api.SecretService