Class OracleContainerSecrets

java.lang.Object
com.oracle.spring.testcontainers.OracleContainerSecrets
All Implemented Interfaces:
AutoCloseable

public final class OracleContainerSecrets extends Object implements AutoCloseable
Shared, auto-closeable secret files for Oracle AI Database Free containers.
  • Field Details

    • ORACLE_PASSWORD_SECRET

      public static final String ORACLE_PASSWORD_SECRET
      Documented secret name containing the Oracle administrative password.
      See Also:
  • Method Details

    • withOraclePassword

      public static OracleContainerSecrets withOraclePassword(String oraclePassword)
      Creates secrets containing the mandatory oracle_pwd file.
    • withSecret

      public OracleContainerSecrets withSecret(String name, byte[] content)
      Adds a supplementary documented secret, such as oracle_pwd_priv_key. The supplied bytes are copied and wiped when this handle closes.
    • getOraclePassword

      public String getOraclePassword()
      Returns the Oracle password used for JDBC connections.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable