Class DefaultDpopService.DPoPManager

java.lang.Object
com.inrupt.client.core.DefaultDpopService.DPoPManager
All Implemented Interfaces:
DPoP
Enclosing class:
DefaultDpopService

public class DefaultDpopService.DPoPManager extends Object implements DPoP
  • Constructor Details

  • Method Details

    • lookupAlgorithm

      public Optional<String> lookupAlgorithm(String jkt)
      Description copied from interface: DPoP
      Retrieve the algorithm for the given thumbprint, if available.
      Specified by:
      lookupAlgorithm in interface DPoP
      Parameters:
      jkt - the JSON Key Thumbprint
      Returns:
      the algorithm, if present
    • lookupThumbprint

      public Optional<String> lookupThumbprint(String algorithm)
      Description copied from interface: DPoP
      Retrieve the thumbprint for a given algorithm, if available.
      Specified by:
      lookupThumbprint in interface DPoP
      Parameters:
      algorithm - the algorithm
      Returns:
      the thumbprint, if present
    • generateProof

      public String generateProof(String algorithm, URI uri, String method)
      Description copied from interface: DPoP
      Generate a DPoP proof for a given URI and method pair.
      Specified by:
      generateProof in interface DPoP
      Parameters:
      algorithm - the algorithm to use
      uri - the HTTP URI
      method - the HTTP method
      Returns:
      the DPoP Proof, serialized as a Base64-encoded string, suitable for use with HTTP headers
    • algorithms

      public Set<String> algorithms()
      Description copied from interface: DPoP
      Return a collection of the supported algorithm names.
      Specified by:
      algorithms in interface DPoP
      Returns:
      the algorithm names