Class: MethodType
identity_wasm.MethodType
Supported verification method types.
Table of contents
Methods
- toJSON
- toString
- Ed25519VerificationKey2018
- X25519KeyAgreementKey2019
- JsonWebKey
- JsonWebKey2020
- custom
- fromJSON
- clone
Methods
toJSON
▸ toJSON(): Object
- Return copy of self without private attributes.
Returns
Object
▸ toJSON(): any
Serializes this to a JSON object.
Returns
any
toString
▸ toString(): string
Return stringified version of self.
Returns
string
▸ toString(): string
Returns the MethodType as a string.
Returns
string
Ed25519VerificationKey2018
▸ Static
Ed25519VerificationKey2018(): MethodType
Returns
X25519KeyAgreementKey2019
▸ Static
X25519KeyAgreementKey2019(): MethodType
Returns
JsonWebKey
▸ Static
JsonWebKey(): MethodType
Returns
Deprecated
Use JsonWebKey2020 instead.
JsonWebKey2020
▸ Static
JsonWebKey2020(): MethodType
A verification method for use with JWT verification as prescribed by the Jwk
in the publicKeyJwk
entry.
Returns
custom
▸ Static
custom(type_
): MethodType
A custom method.
Parameters
Name | Type |
---|---|
type_ | string |
Returns
fromJSON
▸ Static
fromJSON(json
): MethodType
Deserializes an instance from a JSON object.
Parameters
Name | Type |
---|---|
json | any |
Returns
clone
▸ clone(): MethodType
Deep clones the object.