public class SpireVerificationKeyResolver extends Object implements org.jose4j.keys.resolvers.VerificationKeyResolver
| Constructor and Description |
|---|
SpireVerificationKeyResolver(io.spiffe.workloadapi.JwtSource jwtSource,
String spireIssuerSuffix) |
| Modifier and Type | Method and Description |
|---|---|
String |
getSpireIssuerSuffix() |
Key |
resolveKey(org.jose4j.jws.JsonWebSignature jws,
List<org.jose4j.jwx.JsonWebStructure> nestingContext)
Resolve the public key corresponding to .
|
public SpireVerificationKeyResolver(io.spiffe.workloadapi.JwtSource jwtSource,
String spireIssuerSuffix)
public String getSpireIssuerSuffix()
public Key resolveKey(org.jose4j.jws.JsonWebSignature jws, List<org.jose4j.jwx.JsonWebStructure> nestingContext) throws org.jose4j.lang.UnresolvableKeyException
resolveKey in interface org.jose4j.keys.resolvers.VerificationKeyResolverjws - the JsonWebSignature that's about to be verifiednestingContext - a list of JOSE objects, if any, in which the JWS was nested.
The last item in the list is the outermost JOSE object
(excluding the current JWS).org.jose4j.lang.UnresolvableKeyException - if no appropriate key can be found to verify the signature.