CreateWithNewDatabaseAccessToken

This method creates a new end-user security context with a replacement database access token.

Declaration

// C#
public OracleEndUserSecurityContext CreateWithNewDatabaseAccessToken(string databaseAccessToken)

Parameters

  • databaseAccessToken

    New database access token string.

Return Value

A new OracleEndUserSecurityContext with the updated database token.

Exceptions

ArgumentException - Thrown if databaseAccessToken is null or empty.

Other exceptions may be thrown due to an expired token or token validation errors.

Remarks

This method replaces the existing database token with the new value while preserving the existing security context's end-user principal token, data roles, and attributes.

The token input value must be non-null, non-empty, and not expired.