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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from interface com.atlassian.secrets.api.SecretService

    SECRET_SERVICE_STATE_SYSTEM_PROP
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initializes the delegate with a lazily evaluated reference to a SecretService built by buildSecretService();
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(String identifier)
     
    get(String identifier)
     
    com.atlassian.secrets.api.SecretServiceConfiguration
     
    com.atlassian.secrets.api.SecretService.SecretServiceManagement
     
    void
    put(String identifier, String secretData)
     
    void
    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, wait
  • 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
    • getManagement

      public com.atlassian.secrets.api.SecretService.SecretServiceManagement getManagement()
      Specified by:
      getManagement in interface com.atlassian.secrets.api.SecretService