Manipulate and inspect security tokens.
More...
The security token interface provides an abstract means to access and set identification and credential information on an association. A security token always has a type which is expressed as a simple string constant. Once the type of a security token is established, it's contents can be accessed through functions specific to that type, e.g. lwmsg_local_token_get_eid() for tokens of type "local".
Security tokens can always be copied, compared, and deleted regardless of their type.
An opaque structure representing a security token
Gets the type of the specified security token as a simple string constant.
- Parameters
-
[in] | token | the token object |
- Returns
- a string constant identifying the type of the token
Compares two security tokens for equality. The equality logic used is determined by the first token.
- Parameters
-
[in] | token | the first token |
[in] | other | the other token |
- Return values
-
Determines if another security token is permitted to access resources owned by the first security token. This test is more general than the test for equality and may succeed for tokens that are not equal. The logic used is determined by the first token.
- Parameters
-
[in] | token | the first token |
[in] | other | the other token |
- Return values
-
Creates an exact copy of a security token.
- Parameters
-
[in] | token | the token object |
[out] | copy | the token copy |
- Return values
-
Deletes a security token.
- Parameters
-
[in,out] | token | the token object |