Class VerificationMethod
-
- All Implemented Interfaces:
public final class VerificationMethodVerificationMethod expresses verification methods, such as cryptographic public keys, which can be used to authenticate or authorize interactions with the DID subject or associated parties. For example, a cryptographic public key can be used as a verification method with respect to a digital signature; in such usage, it verifies that the signer could use the associated cryptographic private key. Specification Reference: https://www.w3.org/TR/did-core/#verification-methods
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classVerificationMethod.BuilderBuilder object to build a VerificationMethod.
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final Stringtypeprivate final Stringcontrollerprivate final JwkpublicKeyJwk
-
Constructor Summary
Constructors Constructor Description VerificationMethod(String id, String type, String controller, Jwk publicKeyJwk)
-
Method Summary
Modifier and Type Method Description final StringgetId()id of the VerificationMethod final StringgetType()references exactly one verification method type. final StringgetController()a value that conforms to the rules in DID Syntax: https://www.w3. final JwkgetPublicKeyJwk()specification reference: https://www.w3. final BooleanisType(String type)Checks type of VerificationMethod. StringtoString()-
-
Method Detail
-
getType
final String getType()
references exactly one verification method type. In order to maximize global interoperability, the verification method type SHOULD be registered in the DID Specification Registries: https://www.w3.org/TR/did-spec-registries/
-
getController
final String getController()
a value that conforms to the rules in DID Syntax: https://www.w3.org/TR/did-core/#did-syntax
-
getPublicKeyJwk
final Jwk getPublicKeyJwk()
specification reference: https://www.w3.org/TR/did-core/#dfn-publickeyjwk
-
isType
final Boolean isType(String type)
Checks type of VerificationMethod.
- Parameters:
type- The type to check- Returns:
true/false if the type matches
-
-
-
-