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:DPoPRetrieve the algorithm for the given thumbprint, if available.- Specified by:
lookupAlgorithmin interfaceDPoP- Parameters:
jkt- the JSON Key Thumbprint- Returns:
- the algorithm, if present
-
lookupThumbprint
Description copied from interface:DPoPRetrieve the thumbprint for a given algorithm, if available.- Specified by:
lookupThumbprintin interfaceDPoP- Parameters:
algorithm- the algorithm- Returns:
- the thumbprint, if present
-
generateProof
Description copied from interface:DPoPGenerate a DPoP proof for a given URI and method pair.- Specified by:
generateProofin 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:DPoPReturn a collection of the supported algorithm names.- Specified by:
algorithmsin interfaceDPoP- Returns:
- the algorithm names
-