Class AttestationProofValidatorFactory

java.lang.Object
org.keycloak.protocol.oid4vc.issuance.keybinding.AttestationProofValidatorFactory
All Implemented Interfaces:
ProofValidatorFactory, OID4VCEnvironmentProviderFactory, EnvironmentDependentProviderFactory, ProviderFactory<ProofValidator>

public class AttestationProofValidatorFactory extends Object implements ProofValidatorFactory
Factory for creating AttestationProofValidator instances with configurable trusted keys. Trusted keys are loaded from multiple sources with the following priority (highest to lowest):
  1. Keys by ID from realm attribute 'oid4vc.attestation.trusted_key_ids': Keys referenced by their keyId from the realm's key providers (can include disabled keys, not exposed in well-known endpoints)
  2. Keys from realm attribute 'oid4vc.attestation.trusted_keys': Explicit JWK JSON array
  3. Realm session keys (default): All enabled keys from the realm's key providers (exposed in well-known endpoints)
Keys from higher priority sources take precedence when there are conflicts (same kid). This approach allows using realm keys as a default while supporting additional keys via realm attributes, including disabled keys that are not exposed in well-known endpoints.
Author:
Rodrick Awambeng