aries_cloudagent.protocols.out_of_band.v1_0.messages package¶
Submodules¶
aries_cloudagent.protocols.out_of_band.v1_0.messages.invitation module¶
An invitation content message.
-
class
aries_cloudagent.protocols.out_of_band.v1_0.messages.invitation.
HSProto
[source]¶ Bases:
enum.Enum
Handshake protocol enum for invitation message.
-
RFC160
= HSProtoSpec(rfc=160, name='connections/1.0', aka={'connection', '160', 'connections', 'conns', 'conn', 'rfc160', 'old'})¶
-
RFC23
= HSProtoSpec(rfc=23, name='didexchange/1.0', aka={'rfc23', 'didexchange', 'didx', '23', 'new', 'didex'})¶
-
aka
¶ Accessor for also-known-as.
-
rfc
¶ Accessor for RFC.
-
-
class
aries_cloudagent.protocols.out_of_band.v1_0.messages.invitation.
HSProtoSpec
(rfc, name, aka)¶ Bases:
tuple
-
aka
¶ Alias for field number 2
-
name
¶ Alias for field number 1
-
rfc
¶ Alias for field number 0
-
-
class
aries_cloudagent.protocols.out_of_band.v1_0.messages.invitation.
InvitationMessage
(*, comment: str = None, label: str = None, handshake_protocols: Sequence[str] = None, requests_attach: Sequence[aries_cloudagent.messaging.decorators.attach_decorator.AttachDecorator] = None, services: Sequence[Union[aries_cloudagent.protocols.out_of_band.v1_0.messages.service.Service, str]] = None, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.agent_message.AgentMessage
Class representing an out of band invitation message.
-
class
Meta
[source]¶ Bases:
object
InvitationMessage metadata.
-
message_type
= 'out-of-band/1.0/invitation'¶
-
schema_class
= 'InvitationMessageSchema'¶
-
-
classmethod
from_url
(url: str) → aries_cloudagent.protocols.out_of_band.v1_0.messages.invitation.InvitationMessage[source]¶ Parse a URL-encoded invitation into an InvitationMessage instance.
Parameters: url – Url to decode Returns: An InvitationMessage object.
-
class
-
class
aries_cloudagent.protocols.out_of_band.v1_0.messages.invitation.
InvitationMessageSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.agent_message.AgentMessageSchema
InvitationMessage schema.
-
class
Meta
[source]¶ Bases:
object
InvitationMessage schema metadata.
-
model_class
¶ alias of
InvitationMessage
-
unknown
= 'exclude'¶
-
-
handshake_protocols
= <fields.List(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid list.'})>¶
-
label
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
requests_attach
= <fields.Nested(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'type': 'Invalid type.'})>¶
-
services
= <fields.List(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid list.'})>¶
-
class
-
class
aries_cloudagent.protocols.out_of_band.v1_0.messages.invitation.
ServiceOrDIDField
(*, default: Any = <marshmallow.missing>, missing: Any = <marshmallow.missing>, data_key: str = None, attribute: str = None, validate: Union[Callable[[Any], Any], Iterable[Callable[[Any], Any]]] = None, required: bool = False, allow_none: bool = None, load_only: bool = False, dump_only: bool = False, error_messages: Dict[str, str] = None, **metadata)[source]¶ Bases:
marshmallow.fields.Field
DIDComm Service object or DID string field for Marshmallow.
aries_cloudagent.protocols.out_of_band.v1_0.messages.problem_report module¶
Represents an OOB connection reuse problem report message.
-
class
aries_cloudagent.protocols.out_of_band.v1_0.messages.problem_report.
OOBProblemReport
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.protocols.problem_report.v1_0.message.ProblemReport
Base class representing an OOB connection reuse problem report message.
-
class
aries_cloudagent.protocols.out_of_band.v1_0.messages.problem_report.
OOBProblemReportSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.protocols.problem_report.v1_0.message.ProblemReportSchema
Schema for ProblemReport base class.
aries_cloudagent.protocols.out_of_band.v1_0.messages.reuse module¶
Represents a Handshake Reuse message under RFC 0434.
-
class
aries_cloudagent.protocols.out_of_band.v1_0.messages.reuse.
HandshakeReuse
(**kwargs)[source]¶ Bases:
aries_cloudagent.messaging.agent_message.AgentMessage
Class representing a Handshake Reuse message.
-
class
aries_cloudagent.protocols.out_of_band.v1_0.messages.reuse.
HandshakeReuseSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.agent_message.AgentMessageSchema
Handshake Reuse schema class.
aries_cloudagent.protocols.out_of_band.v1_0.messages.reuse_accept module¶
Represents a Handshake Reuse Accept message under RFC 0434.
-
class
aries_cloudagent.protocols.out_of_band.v1_0.messages.reuse_accept.
HandshakeReuseAccept
(**kwargs)[source]¶ Bases:
aries_cloudagent.messaging.agent_message.AgentMessage
Class representing a Handshake Reuse Accept message.
-
class
Meta
[source]¶ Bases:
object
Metadata for Handshake Reuse Accept message.
-
handler_class
= 'aries_cloudagent.protocols.out_of_band.v1_0.handlers.reuse_accept_handler.HandshakeReuseAcceptMessageHandler'¶
-
message_type
= 'out-of-band/1.0/handshake-reuse-accepted'¶
-
schema_class
= 'HandshakeReuseAcceptSchema'¶
-
-
class
-
class
aries_cloudagent.protocols.out_of_band.v1_0.messages.reuse_accept.
HandshakeReuseAcceptSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.agent_message.AgentMessageSchema
Handshake Reuse Accept schema class.
aries_cloudagent.protocols.out_of_band.v1_0.messages.service module¶
Record used to represent a service block of an out of band invitation.
-
class
aries_cloudagent.protocols.out_of_band.v1_0.messages.service.
Service
(*, _id: str = None, _type: str = None, did: str = None, recipient_keys: Sequence[str] = None, routing_keys: Sequence[str] = None, service_endpoint: str = None)[source]¶ Bases:
aries_cloudagent.messaging.models.base.BaseModel
Record used to represent a service block of an out of band invitation.
-
class
aries_cloudagent.protocols.out_of_band.v1_0.messages.service.
ServiceSchema
(*args, **kwargs)[source]¶ Bases:
aries_cloudagent.messaging.models.base.BaseModelSchema
Service schema.
-
did
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=<aries_cloudagent.messaging.valid.IndyDID object>, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-
recipient_keys
= <fields.List(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid list.'})>¶
-
routing_keys
= <fields.List(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid list.'})>¶
-
service_endpoint
= <fields.String(default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, dump_only=False, missing=<marshmallow.missing>, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'invalid': 'Not a valid string.', 'invalid_utf8': 'Not a valid utf-8 string.'})>¶
-