Glacier2.SSLPermissionsVerifier

class Glacier2.SSLPermissionsVerifier

Bases: Object, ABC

Represents an object that checks user permissions. The Glacier2 router and other services use an Glacier2.SSLPermissionsVerifierPrx proxy when the user is authenticated through an SSL certificate.

Notes

The Slice compiler generated this skeleton class from Slice interface ::Glacier2::SSLPermissionsVerifier.

abstractmethod authorize(info: SSLInfo, current: Current) tuple[bool, str] | Awaitable[tuple[bool, str]]

Checks if a user is authorized to establish a session.

Parameters:
  • info (SSLInfo) – The SSL information.

  • current (Ice.Current) – The Current object for the dispatch.

Returns:

A tuple containing:
  • bool true if access is granted, false otherwise.

  • str The reason why access was denied.

Return type:

tuple[bool, str] | Awaitable[tuple[bool, str]]

Raises:

PermissionDeniedException – Thrown when the user’s access is denied. This exception can be thrown instead of returning false with a reason set in the reason out parameter.

static ice_staticId() str

Obtain the type ID of the Slice interface.

Returns:

The type ID.

Return type:

str