Set(byte[], OracleCertificateFunctionality, OracleCredentialFunctionality, OracleOpaqueString)

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

Declaration

// C#
public OracleP12 SetP12(byte[] content, OracleCertificateFunctionality certificateFunctionality, OracleCredentialFunctionality credentialFunctionality, OracleOpaqueString password)

Parameters

  • content

    A byte[] of the P12 wallet content.

  • certificateFunctionality

    The certificate functionalities to use the P12 file content for.

  • credentialFunctionality

    The credential functionalities to use the P12 file content for.

  • password

    The password for decrypting the P12 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 and credentialFunctionality 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 OracleP12 has already been set to read only.