Class PostgresEngine

java.lang.Object
com.strongdm.api.PostgresEngine
All Implemented Interfaces:
SecretEngine

public class PostgresEngine extends Object implements SecretEngine
PostgresEngine is currently unstable, and its API may change, or it may be removed, without a major version bump.
  • Constructor Details

    • PostgresEngine

      public PostgresEngine()
  • Method Details

    • getAfterReadTtl

      public Duration getAfterReadTtl()
      The default time-to-live duration of the password after it's read. Once the ttl has passed, a password will be rotated.
    • setAfterReadTtl

      public void setAfterReadTtl(Duration in)
      The default time-to-live duration of the password after it's read. Once the ttl has passed, a password will be rotated.
    • getDatabase

      public String getDatabase()
      Database is the database to verify credential against.
    • setDatabase

      public void setDatabase(String in)
      Database is the database to verify credential against.
    • getHostname

      public String getHostname()
      Hostname is the hostname or IP address of the Postgres server.
    • setHostname

      public void setHostname(String in)
      Hostname is the hostname or IP address of the Postgres server.
    • getId

      public String getId()
      Unique identifier of the Secret Engine.
      Specified by:
      getId in interface SecretEngine
    • setId

      public void setId(String in)
      Unique identifier of the Secret Engine.
    • getKeyRotationIntervalDays

      public int getKeyRotationIntervalDays()
      An interval of public/private key rotation for secret engine in days
    • setKeyRotationIntervalDays

      public void setKeyRotationIntervalDays(int in)
      An interval of public/private key rotation for secret engine in days
    • getName

      public String getName()
      Unique human-readable name of the Secret Engine.
      Specified by:
      getName in interface SecretEngine
    • setName

      public void setName(String in)
      Unique human-readable name of the Secret Engine.
      Specified by:
      setName in interface SecretEngine
    • getPassword

      public String getPassword()
      Password is the password to connect to the Postgres server.
    • setPassword

      public void setPassword(String in)
      Password is the password to connect to the Postgres server.
    • getPolicy

      public SecretEnginePolicy getPolicy()
      Policy for password creation
    • setPolicy

      public void setPolicy(SecretEnginePolicy in)
      Policy for password creation
    • getPort

      public int getPort()
      Port is the port number of the Postgres server.
    • setPort

      public void setPort(int in)
      Port is the port number of the Postgres server.
    • getPublicKey

      public byte[] getPublicKey()
      Public key linked with a secret engine
      Specified by:
      getPublicKey in interface SecretEngine
    • setPublicKey

      public void setPublicKey(byte[] in)
      Public key linked with a secret engine
      Specified by:
      setPublicKey in interface SecretEngine
    • getSecretStoreId

      public String getSecretStoreId()
      Backing secret store identifier
      Specified by:
      getSecretStoreId in interface SecretEngine
    • setSecretStoreId

      public void setSecretStoreId(String in)
      Backing secret store identifier
      Specified by:
      setSecretStoreId in interface SecretEngine
    • getSecretStoreRootPath

      public String getSecretStoreRootPath()
      Backing Secret Store root path where managed secrets are going to be stored
      Specified by:
      getSecretStoreRootPath in interface SecretEngine
    • setSecretStoreRootPath

      public void setSecretStoreRootPath(String in)
      Backing Secret Store root path where managed secrets are going to be stored
      Specified by:
      setSecretStoreRootPath in interface SecretEngine
    • getTags

      public Map<String,String> getTags()
      Tags is a map of key, value pairs.
      Specified by:
      getTags in interface SecretEngine
    • setTags

      public void setTags(Map<String,String> in)
      Tags is a map of key, value pairs.
      Specified by:
      setTags in interface SecretEngine
    • getTls

      public boolean getTls()
      TLS enables TLS/SSL when connecting to the Postgres server.
    • setTls

      public void setTls(boolean in)
      TLS enables TLS/SSL when connecting to the Postgres server.
    • getTtl

      public Duration getTtl()
      The default password time-to-live duration. Once the ttl has passed, a password will be rotated the next time it's requested.
    • setTtl

      public void setTtl(Duration in)
      The default password time-to-live duration. Once the ttl has passed, a password will be rotated the next time it's requested.
    • getUsername

      public String getUsername()
      Username is the username to connect to the Postgres server.
    • setUsername

      public void setUsername(String in)
      Username is the username to connect to the Postgres server.