CreateWithTokenAndName(string databaseAccessToken, string endUserName, string lookUpKey)

This method creates a new end-user security context using a database access token and end-user identity.

Declaration

// C#
public static OracleEndUserSecurityContext CreateWithTokenAndName(string databaseAccessToken, string endUserName, string lookUpKey)

Parameters

Return Value

A new OracleEndUserSecurityContext initialized with the provided database token, end-user name, and lookup key.

Exceptions

ArgumentException - Thrown if databaseAccessToken, endUserName, or lookUpKey is null or empty.

Other exceptions may be thrown by token parsing and expiry validation checks.

Remarks

This method:

The end-user name should be enclosed in double-quotes if the end user was declared using a quoted identifier.

See Also: