Glacier2.SSLPermissionsVerifierPrx¶
- class Glacier2.SSLPermissionsVerifierPrx¶
Bases:
ObjectPrxRepresents an object that checks user permissions. The Glacier2 router and other services use an
Glacier2.SSLPermissionsVerifierPrxproxy when the user is authenticated through an SSL certificate.Notes
The Slice compiler generated this proxy class from Slice interface
::Glacier2::SSLPermissionsVerifier.- authorize(info: SSLInfo, context: dict[str, str] | None = None) tuple[bool, str]¶
Checks if a user is authorized to establish a session.
- Parameters:
- Returns:
- A tuple containing:
bool
trueif access is granted,falseotherwise.str The reason why access was denied.
- Return type:
- Raises:
PermissionDeniedException – Thrown when the user’s access is denied. This exception can be thrown instead of returning
falsewith a reason set in the reason out parameter.
- authorizeAsync(info: SSLInfo, context: dict[str, str] | None = None) Awaitable[tuple[bool, str]]¶
Checks if a user is authorized to establish a session.
- static checkedCast(proxy: ObjectPrx | None, facet: str | None = None, context: dict[str, str] | None = None) SSLPermissionsVerifierPrx | None¶
Creates a new proxy from an existing proxy after confirming the target object’s type via a remote invocation.
- Parameters:
- Returns:
A new proxy with the requested type, or None if the source proxy is None or if the target object does not support the requested type.
- Return type:
ObjectPrx | None
- static checkedCastAsync(proxy: ObjectPrx | None, facet: str | None = None, context: dict[str, str] | None = None) Awaitable[SSLPermissionsVerifierPrx | None]¶
Creates a new proxy from an existing proxy after confirming the target object’s type via a remote invocation.
- Parameters:
- Returns:
A new proxy with the requested type, or None if the source proxy is None or if the target object does not support the requested type.
- Return type:
ObjectPrx | None
- static ice_staticId() str¶
Gets the Slice type ID of the interface associated with this proxy.
- Returns:
The type ID, “::Ice::Object”.
- Return type: