Package org.apache.synapse.securevault.secret.mbean

# Class JMXSecretsProvider

java.lang.Object
org.apache.synapse.securevault.secret.mbean.JMXSecretsProvider

All Implemented Interfaces:
  `JMXSecretsProviderMBean`

public class JMXSecretsProvider extends Object implements JMXSecretsProviderMBean
SecretsMBean implementation

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JMXSecretsProvider()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addSecret(String id, String secret)`
  Add a secret through JMX
  `void`
  `clear()`
  Clear all secrets
  `String`
  `getSecret(String id)`
  `void`
  `removeSecret(String id)`
  Remove a Secret for given ID

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### JMXSecretsProvider

    public JMXSecretsProvider()

- ## Method Details

  - ### addSecret

    public void addSecret(String id, String secret)
    Description copied from interface: `JMXSecretsProviderMBean`
    Add a secret through JMX
    Specified by:
      `addSecret` in interface `JMXSecretsProviderMBean`
    Parameters:
      `id` - identify for what this secret is
      `secret` - Secret

  - ### getSecret

    public String getSecret(String id)

  - ### removeSecret

    public void removeSecret(String id)
    Description copied from interface: `JMXSecretsProviderMBean`
    Remove a Secret for given ID
    Specified by:
      `removeSecret` in interface `JMXSecretsProviderMBean`
    Parameters:
      `id` - identify for what this secret is

  - ### clear

    public void clear()
    Description copied from interface: `JMXSecretsProviderMBean`
    Clear all secrets
    Specified by:
      `clear` in interface `JMXSecretsProviderMBean`