Methods of the ClientPrincipal class
- Last Updated: August 16, 2021
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Methods of the ClientPrincipal class
The following table lists the methods of the of the ClientPrincipal class.
| Method | Description |
|---|---|
exportPrincipal()
|
Serializes the ClientPrincipal object into a byte array. A serialized ClientPrincipal object can be deserialized using the
importPrincipal() method. If errors occur during
the serialization process, an exception will be thrown. |
getProperty(String
propertyName
)
|
Returns a string containing the value of the
specified user-defined property stored in the ClientPrincipal
object. If the specified property is not found, null will be
returned. |
importPrincipal(Byte[]
serializedCP
)
|
A static method that deserializes a byte array into a
ClientPrincipal object. If errors occur during the
deserialization process (e.g., an improperly formatted byte array), an exception will
be thrown. |
seal(String
domainAccessCode
)
|
When called by a user-defined authentication system,
this method asserts the authenticity of the user represented by the ClientPrincipal object. If successful, the method returns
true.Calling this method is the
beginning of the user's login session, and as a result, the The |
seal(OEDomainRegistry
domainRegistry
)
|
When called by a user-defined authentication system,
this method asserts the authenticity of the user represented by the ClientPrincipal object. If successful, the method returns
true.Calling this method is the
beginning of the user's login session, and as a result, the The |
setProperty(String
propertyName,
|
Sets the value of the specified property in the
unsealed ClientPrincipal object. If successful, the
method returns true. |
validateSeal(String
domainAccessCode
)
|
Validates that the the ClientPrincipal object was sealed with the specified domain access code.
If successful, the method returns true.The |
validateSeal(OEDomainRegistry
domainRegistry
)
|
Validates that the the ClientPrincipal object was sealed using the domain access code defined in
the OEDomainRegistry object. If successful, the
method returns true.The |