class documentation

class RequestCredentials:

View In Hierarchy

Structure that holds the credentials for a request.

Method __repr__ String representation of the RequestCredentials.
Method getHttpBasic Return the HTTP basic authentication string.
Method getHttpBearerToken Return the HTTP bearer token string.
Method getWsBasic Return the WebSockets basic authentication string.
Method getWsBearerToken Return the WebSockets bearer token string.
Class Variable httpPassword Password for HTTP basic authentication.
Class Variable httpToken Token for HTTP bearer token authentication.
Class Variable httpUsername Username for HTTP basic authentifcation.
Class Variable wsPassword Password for WebSockets HTTP basic authentication.
Class Variable wsToken Token for WebSockets HTTP bearer token authentication.
Class Variable wsUsername Username for WebSockets HTTP basic authentifcation.
def __repr__(self) -> str:

String representation of the RequestCredentials.

Returns
strString representation.
def getHttpBasic(self) -> str:

Return the HTTP basic authentication string.

Returns
strThe HTTP basic authentication string as base64 encoded string.
def getHttpBearerToken(self) -> str:

Return the HTTP bearer token string.

Returns
strThe HTTP bearer token string.
def getWsBasic(self) -> str:

Return the WebSockets basic authentication string.

Returns
strThe WebSockets basic authentication string as base64 encoded string.
def getWsBearerToken(self) -> str:

Return the WebSockets bearer token string.

Returns
strThe WebSockets bearer token string.
httpPassword: str | None =

Password for HTTP basic authentication.

httpToken: str | None =

Token for HTTP bearer token authentication.

httpUsername: str | None =

Username for HTTP basic authentifcation.

wsPassword: str | None =

Password for WebSockets HTTP basic authentication.

wsToken: str | None =

Token for WebSockets HTTP bearer token authentication.

wsUsername: str | None =

Username for WebSockets HTTP basic authentifcation.