This SECURITY-POLICY method
|
Provides this function
|
LOAD-DOMAINS( integer-expression
logical-namealias ) |
Builds the session domain registry from the local database domain registry of a specified OpenEdge database connection. (The integer-expression value specifies the database by its order of connection in the ABL session.) You can call this method multiple times to refresh the session registry from the latest contents of the same local database domain registry only. Calling this method using a different database, or using a different connection to the same database, raises an error.
You can use the session domain registry built with this method to:
Authenticate and set the ABL session identity and the connection identity of a properly configured OpenEdge database using an unsealed client-principal (through OpenEdge-performed user authentication or ABL callback authentication) or using a sealed client-principal (through OpenEdge-performed SSO).
Seal an unsealed client-principal using the client-principal SEAL( ) method.
If you call either the LOCK-REGISTRATION( ) method or the REGISTER-DOMAIN( ) method successfully, any call to this method fails.1 Once you call this method successfully, any call to LOCK-REGISTRATION( ) or REGISTER-DOMAIN( ) fails.
Note: This method is more secure for building the session domain registry than using the REGISTER-DOMAIN( ) method, and it is the only way to build a session registry that can be used to authenticate or validate the connection identity for an OpenEdge multi-tenant database.
|
LOCK-REGISTRATION( )
|
Locks the session domain registry against any further update using the REGISTER-DOMAIN( ) method.2 If you call this method before calling REGISTER-DOMAIN( ), the locked session registry is empty, but usable.
You must call this method before you can validate user identities using a session registry built using the REGISTER-DOMAIN( ) method.
If you call the LOAD-DOMAINS( ) method successfully before calling this method, any call to this method fails. Once you call this method successfully, the registry is usable and any call to LOAD-DOMAINS( )or REGISTER-DOMAIN( ) fails.
|
REGISTER-DOMAIN
( domain-name , access-code , domain-description , domain-type ) |
Creates a single domain entry in the session domain registry from the parameters passed to the method:
domain-name — Specifies the name of an OpenEdge domain, which must match the DOMAIN-NAME property of any client-principal object that you seal using this domain entry (see Table 11).
access-code — Specifies the value to use as a MAC key for sealing a client-principal object, or for validating a client-principal object that has been sealed, against this domain entry (see Table 13).
domain-description — Allows an informal description of the domain. Otherwise, the value is blank ("").
domain-type — Allows you to specify the name of an authentication system for the domain. Otherwise, the value is blank ("").
You can call this method multiple times to build a session domain registry. You can then use this registry to seal an unsealed client-principal using the client-principal SEAL( ) method and to set a session identity or a connection identity for an OpenEdge database (non-multi-tenant only) using a sealed client-principal. However, OpenEdge can never use a session registry built with this method to authenticate an identity asserted with an unsealed client-principal (see LOAD-DOMAINS( ) described in this table).
If you call either the LOCK-REGISTRATION( ) method or the LOAD-DOMAINS( ) method successfully, any call to this method fails. Once you call this method successfully, any call to LOAD-DOMAINS( ) fails.
Note: The domain-description and domain-type values do not have to match the DOMAIN-DESCRIPTION and DOMAIN-TYPE attributes in a client-principal object in order to validate its identity against a domain entry.
|