aries / net.globalid.aries.decorators.service / ServiceDecorator

ServiceDecorator

@JsonClass(true) data class ServiceDecorator : MessageDecorator

This decorator describes a DID service endpoint inline to a message. This allows for connectionless protocol messages (e.g. a proof request that is not bound to a connection).

Implements Aries RFC 0056 (Service Decorator) from Aries Interop Profile Version 1.0.

Constructors

<init>

This decorator describes a DID service endpoint inline to a message. This allows for connectionless protocol messages (e.g. a proof request that is not bound to a connection).

ServiceDecorator(recipientKeys: List<String>, routingKeys: List<String>, serviceEndpoint: String)

Properties

recipientKeys

are verification keys (public keys) of the recipient (that is, the sender of the message that contains this decorator). These keys must be used to encrypt the response message.

val recipientKeys: List<String>

routingKeys

are verification keys of the routers in between. These keys must be used to wrap the encrypted message in forward messages; If empty, no additional wrapping is needed. See ForwardMessage and EnvelopeService for more details.

val routingKeys: List<String>

serviceEndpoint

is an URI endpoint to send the encrypted response message to.

val serviceEndpoint: String