Glacier2.SSLSessionManagerPrx¶
- class Glacier2.SSLSessionManagerPrx¶
Bases:
ObjectPrxRepresents an application-provided factory for session objects. You can configure a Glacier2 router with your own SSLSessionManager implementation; this router will then return the sessions created by this session manager to its clients.
Notes
The Slice compiler generated this proxy class from Slice interface
::Glacier2::SSLSessionManager.- create(info: SSLInfo, control: SessionControlPrx | None, context: dict[str, str] | None = None) SessionPrx | None¶
Creates a new session object.
- Parameters:
info (SSLInfo) – The SSL info.
control (SessionControlPrx | None) – A proxy to the session control object. This proxy is null when
Glacier2.Server.Endpointsis not configured.context (dict[str, str]) – The request context for the invocation.
- Returns:
A proxy to the newly created session. This proxy is never null.
- Return type:
SessionPrx | None
- Raises:
CannotCreateSessionException – Thrown when the session cannot be created.
- createAsync(info: SSLInfo, control: SessionControlPrx | None, context: dict[str, str] | None = None) Awaitable[SessionPrx | None]¶
Creates a new session object.
- Parameters:
info (SSLInfo) – The SSL info.
control (SessionControlPrx | None) – A proxy to the session control object. This proxy is null when
Glacier2.Server.Endpointsis not configured.context (dict[str, str]) – The request context for the invocation.
- Returns:
A proxy to the newly created session. This proxy is never null.
- Return type:
Awaitable[SessionPrx | None]
- static checkedCast(proxy: ObjectPrx | None, facet: str | None = None, context: dict[str, str] | None = None) SSLSessionManagerPrx | 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 facet, or
Noneif the source proxy isNoneor if the target object/facet 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[SSLSessionManagerPrx | 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 facet, or
Noneif the source proxy isNoneor if the target object/facet does not support the requested type.- Return type:
ObjectPrx | None