OpenEdge.Security.Principal
- Last Updated: January 15, 2026
- 5 minute read
- OpenEdge
- Documentation
|
Method Summary
| Options | Name | Purpose | |
|---|---|---|---|
| LOGICAL AssertUser () |
/* Asserts the user represented by this token in the current session.
Will set for all connected dbs.
@return logical TRUE if the assertion passed */
|
||
| LOGICAL AssertUser (character) |
/* Asserts the user represented by this token in the current session.
Passing in a value of * results in asserting the user against all
connected DB's.
@param character The name of the connected database (logical or alias)
into which the user is asserted.
@return logical TRUE if the assertion passed */
|
||
| LOGICAL Authorize (character) |
/* Authorises the current token for a particular role
@param character A non-empty role
@return logical TRUE if the user is authorised for the given role */
|
||
| LOGICAL Authorize (character[]) |
/* Authorises the current token for all given roles
@param character[] A non-empty array of roles
@return logical TRUE if the user is authorised for ALL the given roles */
|
||
| LOGICAL AuthorizeAll (character[]) |
/* Authorises the current token for all given roles
@param character[] A non-empty array of roles
@return logical TRUE if the user is authorised for ALL the given roles */
|
||
| LOGICAL AuthorizeOne (character[]) |
/* Authorises the current token for ONE of the given roles
@param character[] A non-empty array of roles
@return logical TRUE if the user is authorised for ONE the given roles */
|
||
| HANDLE Clone (handle) |
/* Clones a Client-Principal handle, creating a deep copy of all attributes and properties.
@param handle The source Client-Principal handle to clone.
@return handle A new Principal with copied attributes and properties. */
|
||
| OpenEdge.Security.Principal Import () |
/* Creates a new Principal from the CP asserted in this session
@return Principal A new object representing the input CP. May be null */
|
||
| OpenEdge.Security.Principal Import (character) |
/* Creates a new Principal from BASE64 data
@param character An exported version of a CP, encoded as base64
@return Principal A new object representing the input CP */
|
||
| OpenEdge.Security.Principal Import (integer) |
/* Creates a new Principal from the CP asserted against a database
@param integer The logical DB connection number
@return Principal A new object representing the input CP. May be null */
|
||
| OpenEdge.Security.Principal Import (Memptr) |
/* Creates a new Principal from a object-wrapper memptr
CALLER IS RESPONSIBLE FOR MEMORY DEALLOCATION
@param Memptr The OO wrapper containing the CP
@return Principal A new object representing the input CP. May be null */
|
||
| OpenEdge.Security.Principal Import (memptr) |
/* Creates a new Principal from a primitive memptr.
CALLER IS RESPONSIBLE FOR MEMORY DEALLOCATION
@param memptr The CP
@return Principal A new object representing the input CP. May be null */
|
||
| OpenEdge.Security.Principal Import (OERequestInfo) |
/* Creates a new Principal from the CP returned by a server.
@param OERequestInfo The request info containing the CP
@return Principal A new object representing the input CP. May be null */
|
||
| OpenEdge.Security.Principal Import (raw) |
/* Creates a new Principal from RAW data
@param raw An exported version of a CP
@return Principal A new object representing the input CP */
|
||
| LOGICAL Validate () |
/* Validates the current token.
@return logical TRUE if the token is valid. */
|
||
| LOGICAL Validate (character) |
/* Validates the current token.
@param character The key used to seal the principal
@return logical TRUE if the token is valid. */
|
Constructor Summary
| Options | Name | Purpose | |
|---|---|---|---|
| Principal () |
/* Default constructor.
Made private since we need this class to always hold a
client-principal */
|
||
| Principal (handle) |
/* Constructor.
@param handle A valid client-principal (state not checked) */
|
||
| Principal (handle, logical) |
/* Constructor.
@param handle A valid client-principal (state not checked)
@param logical Determines whether the contained token will be destroyed
when this wrapper is destroyed. Typically TRUE for Imports */
|
Property Summary
| Options | Name | Purpose | |
|---|---|---|---|
| HANDLE Token |
|
Method Detail
LOGICAL AssertUser ()
|
||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
LOGICAL AssertUser (character)
|
||||||||||||||||||||||
LOGICAL Authorize (character)
|
||||||||||||||||||||||
LOGICAL Authorize (character[])
|
||||||||||||||||||||||
LOGICAL AuthorizeAll (character[])
|
||||||||||||||||||||||
LOGICAL AuthorizeOne (character[])
|
||||||||||||||||||||||
HANDLE Clone (handle)
|
||||||||||||||||||||||
OpenEdge.Security.Principal Import ()
|
||||||||||||||||||||||
OpenEdge.Security.Principal Import (character)
|
||||||||||||||||||||||
OpenEdge.Security.Principal Import (integer)
|
||||||||||||||||||||||
OpenEdge.Security.Principal Import (Memptr)
|
||||||||||||||||||||||
OpenEdge.Security.Principal Import (memptr)
|
||||||||||||||||||||||
OpenEdge.Security.Principal Import (OERequestInfo)
|
||||||||||||||||||||||
OpenEdge.Security.Principal Import (raw)
|
||||||||||||||||||||||
LOGICAL Validate ()
|
||||||||||||||||||||||
LOGICAL Validate (character)
|
||||||||||||||||||||||
Constructor Detail
Principal ()
|
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Principal (handle)
|
||||||||||||||||||
Principal (handle, logical)
|
||||||||||||||||||
Property Detail
HANDLE Token
|
||||||||
|---|---|---|---|---|---|---|---|---|