Class OID4VCGeneratedIdMapper
java.lang.Object
org.keycloak.protocol.oid4vc.issuance.mappers.OID4VCMapper
org.keycloak.protocol.oid4vc.issuance.mappers.OID4VCGeneratedIdMapper
- All Implemented Interfaces:
OID4VCEnvironmentProviderFactory
,ProtocolMapper
,ConfiguredProvider
,EnvironmentDependentProviderFactory
,Provider
,ProviderFactory<ProtocolMapper>
Adds a generated ID to the credential (as a configurable property).
- Author:
- Ingrid Kamga
-
Field Summary
FieldsFields inherited from class org.keycloak.protocol.oid4vc.issuance.mappers.OID4VCMapper
CLAIM_NAME, format, mapperModel, USER_ATTRIBUTE_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(KeycloakSession session) getId()
protected List<ProviderConfigProperty>
must return ordered list of attribute-names as they are added into the credential.boolean
this claim is not added by default to the metadatavoid
setClaimsForCredential
(VerifiableCredential verifiableCredential, UserSessionModel userSessionModel) Set the claims to credential, like f.e.void
setClaimsForSubject
(Map<String, Object> claims, UserSessionModel userSessionModel) Set the claims to the credential subject.Methods inherited from class org.keycloak.protocol.oid4vc.issuance.mappers.OID4VCMapper
close, getAttributePrefix, getConfigProperties, getDisplayCategory, getProtocol, init, postInit, setMapperModel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfig
Methods inherited from interface org.keycloak.protocol.oid4vc.OID4VCEnvironmentProviderFactory
isSupported
Methods inherited from interface org.keycloak.protocol.ProtocolMapper
getEffectiveModel, getPriority, validateConfig
Methods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, order
-
Field Details
-
MAPPER_ID
- See Also:
-
-
Constructor Details
-
OID4VCGeneratedIdMapper
public OID4VCGeneratedIdMapper()
-
-
Method Details
-
getIndividualConfigProperties
- Specified by:
getIndividualConfigProperties
in classOID4VCMapper
-
includeInMetadata
public boolean includeInMetadata()this claim is not added by default to the metadata- Overrides:
includeInMetadata
in classOID4VCMapper
-
getMetadataAttributePath
Description copied from class:OID4VCMapper
must return ordered list of attribute-names as they are added into the credential. This is required for the metadata endpoint to add the appropriate path-attributes into the claim's description.- Overrides:
getMetadataAttributePath
in classOID4VCMapper
- Returns:
- the attribute path that is being mapped into the credential
-
setClaimsForCredential
public void setClaimsForCredential(VerifiableCredential verifiableCredential, UserSessionModel userSessionModel) Description copied from class:OID4VCMapper
Set the claims to credential, like f.e. the context- Specified by:
setClaimsForCredential
in classOID4VCMapper
-
setClaimsForSubject
Description copied from class:OID4VCMapper
Set the claims to the credential subject.- Specified by:
setClaimsForSubject
in classOID4VCMapper
-
getDisplayType
-
getHelpText
-
create
-
getId
-