Class VerificationMethod

  • All Implemented Interfaces:

    
    public final class VerificationMethod
    
                        

    VerificationMethod 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 class VerificationMethod.Builder

      Builder object to build a VerificationMethod.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getId() id of the VerificationMethod
      final String getType() references exactly one verification method type.
      final String getController() a value that conforms to the rules in DID Syntax: https://www.w3.
      final Jwk getPublicKeyJwk() specification reference: https://www.w3.
      final Boolean isType(String type) Checks type of VerificationMethod.
      String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VerificationMethod

        VerificationMethod(String id, String type, String controller, Jwk publicKeyJwk)
    • Method Detail

      • getId

         final String getId()

        id of the VerificationMethod

      • 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