Package com.inrupt.client.core
Class DefaultDpopService.DPoPManager
java.lang.Object
com.inrupt.client.core.DefaultDpopService.DPoPManager
- All Implemented Interfaces:
DPoP
- Enclosing class:
- DefaultDpopService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn a collection of the supported algorithm names.generateProof
(String algorithm, URI uri, String method) Generate a DPoP proof for a given URI and method pair.lookupAlgorithm
(String jkt) Retrieve the algorithm for the given thumbprint, if available.lookupThumbprint
(String algorithm) Retrieve the thumbprint for a given algorithm, if available.
-
Constructor Details
-
DPoPManager
-
-
Method Details
-
lookupAlgorithm
Description copied from interface:DPoP
Retrieve the algorithm for the given thumbprint, if available.- Specified by:
lookupAlgorithm
in interfaceDPoP
- Parameters:
jkt
- the JSON Key Thumbprint- Returns:
- the algorithm, if present
-
lookupThumbprint
Description copied from interface:DPoP
Retrieve the thumbprint for a given algorithm, if available.- Specified by:
lookupThumbprint
in interfaceDPoP
- Parameters:
algorithm
- the algorithm- Returns:
- the thumbprint, if present
-
generateProof
Description copied from interface:DPoP
Generate a DPoP proof for a given URI and method pair.- Specified by:
generateProof
in interfaceDPoP
- Parameters:
algorithm
- the algorithm to useuri
- the HTTP URImethod
- the HTTP method- Returns:
- the DPoP Proof, serialized as a Base64-encoded string, suitable for use with HTTP headers
-
algorithms
Description copied from interface:DPoP
Return a collection of the supported algorithm names.- Specified by:
algorithms
in interfaceDPoP
- Returns:
- the algorithm names
-