Create own Token
Creates a Token that represents arbitrary encrypted data saved on the Backbone.
Parameters
contentan arbitrary JSON structure of the data to share via the Token.expiresAtis the ISODateTime the Token expires at.ephemeralindicates if the Token should be ephemeral and thus not be stored and cached on the local database. This is especially useful for Tokens which are created regularly, e.g. for RelationshipTemplates and doesn’t need to be stored.forIdentitycan be set to an enmeshed address. If set, only the Identity with thataddresscan load the Token from the Backbone.passwordProtectioncan be specified as an object for PasswordProtection of a Token. If set, only the Identities that know the password specified within thepasswordProtection.passwordproperty of the Token can load it from the Backbone. In addition, the optional propertypasswordProtection.passwordIsPincan be used to configure the UI of the App in case the password is a pin.
On Success
- Returns the created
Token.
On Failure
- The
contentis malformed. expiresAtlies in the past.- In case of password protection of the Token, a
passwordProtection.passwordthat does not consist of 4 to 16 digits was specified, but the value ofpasswordProtection.passwordIsPinwas nevertheless set totrue.