GstRtspServer.RTSPToken¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
mini_object |
r/w |
Methods¶
class |
|
|
|
|
|
|
|
|
|
Details¶
- class GstRtspServer.RTSPToken¶
An opaque object used for checking authorisations. It is generated after successful authentication.
- classmethod new()[source]¶
- Returns:
a new empty authorization token.
- Return type:
Create a new empty Authorization token.
- get_string(field)[source]¶
- Parameters:
field (
str
) – a field name- Returns:
the string value of field in self or
None
when field is not defined in self. The string becomes invalid when you free self.- Return type:
Get the string value of field in self.
- get_structure()[source]¶
- Returns:
The structure of the token. The structure is still owned by the token, which means that you should not free it and that the pointer becomes invalid when you free the token.
MT safe.
- Return type:
Access the structure of the token.
- is_allowed(field)[source]¶
- Parameters:
field (
str
) – a field name- Returns:
- Return type:
Check if self has a boolean field and if it is set to
True
.
- writable_structure()[source]¶
- Returns:
The structure of the token. The structure is still owned by the token, which means that you should not free it and that the pointer becomes invalid when you free the token. This function ensures that self is writable, and if so, will never return
None
.MT safe.
- Return type:
Get a writable version of the structure.