aiowamp.AuthKeyring¶
-
class
aiowamp.AuthKeyring(*methods, auth_id=None)[source]¶ Initialise the keyring.
Parameters: - *methods – Methods to initialise the keyring with.
- auth_id (
Optional[str]) – Auth id to use. Defaults toNone. - methods (
ForwardRef) –
Raises: ValueError– - The same auth method type was specified multiple times. - No auth id was specified but one of the methods requires it. - Multiple methods specify the same auth extra key withdiffering values.
-
__init__(*methods, auth_id=None)[source]¶ Initialise the keyring.
Parameters: - *methods – Methods to initialise the keyring with.
- auth_id (
Optional[str]) – Auth id to use. Defaults toNone. - methods (
ForwardRef) –
Raises: ValueError– - The same auth method type was specified multiple times. - No auth id was specified but one of the methods requires it. - Multiple methods specify the same auth extra key withdiffering values.
Return type: None
Methods
__init__(*methods[, auth_id])Initialise the keyring. get(k[,d])items()keys()values()Attributes
auth_extraAuth extras with all the auth extras from the underlying methods. auth_idAuth id to use during authentication. -
__init__(*methods, auth_id=None)[source] Initialise the keyring.
Parameters: - *methods – Methods to initialise the keyring with.
- auth_id (
Optional[str]) – Auth id to use. Defaults toNone. - methods (
ForwardRef) –
Raises: ValueError– - The same auth method type was specified multiple times. - No auth id was specified but one of the methods requires it. - Multiple methods specify the same auth extra key withdiffering values.
Return type: None
-
__getitem__(method)[source]¶ Get the auth method with the given name.
Parameters: method ( str) – Name of the method to get.Return type: AuthMethodABCReturns: Auth method stored in the keyring. Raises: KeyError– If no auth method with the given method exists in the keyring.
-
__iter__()[source]¶ Get an iterator for the auth method names in the keyring.
Return type: Iterator[str]