wotpy.protocols.coap.credential

Credential classes that add the proper authorization creds to the outgoing requests.

Classes

APIKeySecurityCredential(security_credentials)

API Key credential.

AutoSecurityCredential(security_credentials)

Auto security credential.

BaseCredential(security_credentials)

This is the base credential class describing the credential interface.

BasicSecurityCredential(security_credentials)

Basic username and password credential.

BearerSecurityCredential(security_credentials)

Bearer token credential.

ComboSecurityCredential(security_credentials)

Combinator of security schemes credential.

DigestSecurityCredential(security_credentials)

Digest credential.

NoSecurityCredential(security_credentials)

Credential that allows all requests.

OAuth2SecurityCredential(security_credentials)

OAuth2 credential.

PSKSecurityCredential(security_credentials)

Pre shared key credential.

class wotpy.protocols.coap.credential.APIKeySecurityCredential(security_credentials)

Bases: BaseCredential

API Key credential.

async sign(request)

Adds the appropriate authorization header to the request.

class wotpy.protocols.coap.credential.AutoSecurityCredential(security_credentials)

Bases: BaseCredential

Auto security credential.

async sign(request)

Adds the appropriate authorization header to the request.

class wotpy.protocols.coap.credential.BaseCredential(security_credentials)

Bases: object

This is the base credential class describing the credential interface.

classmethod build(security_scheme_dict, security_credentials)

Builds an instance of the appropriate subclass for the given SecurityScheme.

abstractmethod async sign(request)

Adds the appropriate authorization header to the request.

class wotpy.protocols.coap.credential.BasicSecurityCredential(security_credentials)

Bases: BaseCredential

Basic username and password credential.

async sign(request)

Adds the appropriate authorization header to the request.

class wotpy.protocols.coap.credential.BearerSecurityCredential(security_credentials)

Bases: BaseCredential

Bearer token credential.

async sign(request)

Adds the appropriate authorization header to the request.

class wotpy.protocols.coap.credential.ComboSecurityCredential(security_credentials)

Bases: BaseCredential

Combinator of security schemes credential.

async sign(request)

Adds the appropriate authorization header to the request.

class wotpy.protocols.coap.credential.DigestSecurityCredential(security_credentials)

Bases: BaseCredential

Digest credential.

async sign(request)

Adds the appropriate authorization header to the request.

class wotpy.protocols.coap.credential.NoSecurityCredential(security_credentials)

Bases: BaseCredential

Credential that allows all requests.

async sign(request)

Adds the appropriate authorization header to the request.

class wotpy.protocols.coap.credential.OAuth2SecurityCredential(security_credentials)

Bases: BaseCredential

OAuth2 credential.

async sign(request)

Adds the appropriate authorization header to the request.

class wotpy.protocols.coap.credential.PSKSecurityCredential(security_credentials)

Bases: BaseCredential

Pre shared key credential.

async sign(request)

Adds the appropriate authorization header to the request.