Class StaticAttestationKeyResolver
java.lang.Object
org.keycloak.protocol.oid4vc.issuance.keybinding.StaticAttestationKeyResolver
- All Implemented Interfaces:
AttestationKeyResolver
Simple static implementation of AttestationKeyResolver using an in-memory trusted map.
- Author:
- Rodrick Awambeng
-
Constructor Summary
ConstructorsConstructorDescriptionStaticAttestationKeyResolver(Map<String, JWK> trustedKeys) StaticAttestationKeyResolver(Map<String, JWK> trustedKeys, List<X509TrustMaterial> x509TrustMaterials) -
Method Summary
Modifier and TypeMethodDescriptionResolves a JWK for the given kid, header, and payload context.Resolves and validates an attestation certificate chain.
-
Constructor Details
-
StaticAttestationKeyResolver
-
StaticAttestationKeyResolver
public StaticAttestationKeyResolver(Map<String, JWK> trustedKeys, List<X509TrustMaterial> x509TrustMaterials)
-
-
Method Details
-
resolveKey
Description copied from interface:AttestationKeyResolverResolves a JWK for the given kid, header, and payload context. Returns null if the key cannot be resolved or is not trusted.- Specified by:
resolveKeyin interfaceAttestationKeyResolver
-
resolveX5c
Description copied from interface:AttestationKeyResolverResolves and validates an attestation certificate chain. Returningnullmeans that none of the configured trust sources trusts the chain.- Specified by:
resolveX5cin interfaceAttestationKeyResolver
-