Set(byte[], OracleCertificateFunctionality, OracleOpaqueString=null)

This method sets the the in-memory PEM wallet functionalities for the OracleConnection to use.

Declaration

// C#
public OraclePEM SetPEM(string content, OracleCertificateFunctionality certificateFunctionality, OracleOpaqueString password=null)

Parameters

  • content

    A byte[] of the PEM wallet content.

  • certificateFunctionality

    The certificate functionalities to use the PEM file content for.

  • password

    The optional password for decrypting the PEM wallet.

Return Value

Returns itself so that multiple calls can be chained.

Exceptions

Throws ORA-50128 if the object is read-only.

Remarks

For the certificateFunctionality parameter values, multiple functionalities can be enabled using bitwise OR.

Subsequent calls to Set() overwrite previous Update() and Set() calls if the functionalities overlap.

Before MakeReadOnly() is called, the Set() and Update() methods perform the same function. Their difference is after MakeReadOnly() is called, only Update() can be called to update existing functionalities.

If the content is null or empty, the specified functionalities will be unset unless OraclePEM has already been set to read only.