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

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

Declaration

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

Parameters

  • content

    A byte[] of the updated 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, while read-only, a functionality provided did not already exist on the OracleP12, or if content is null or empty.

Remarks

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

Subsequent calls to Update() 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.