Class OID4VCIssuedAtTimeClaimMapper
java.lang.Object
org.keycloak.protocol.oid4vc.issuance.mappers.OID4VCMapper
org.keycloak.protocol.oid4vc.issuance.mappers.OID4VCIssuedAtTimeClaimMapper
- All Implemented Interfaces:
OID4VCEnvironmentProviderFactory,ProtocolMapper,ConfiguredProvider,EnvironmentDependentProviderFactory,Provider,ProviderFactory<ProtocolMapper>
Map issuance date to the credential, under the default claim name "iat"
subjectProperty can be used to change the claim name.
Source of the information can either be computed, or read from the VerifiableCredential object bearing other claims. Default is the value in the verifiable credential.
We will use the java.time.temporal.ChronoUnit enum values to help flatten down the time.
- Author:
- Francis Pouatcha
-
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>booleanthis claim is not added by default to the metadatavoidsetClaimsForCredential(VerifiableCredential verifiableCredential, UserSessionModel userSessionModel) Set the claims to credential, like f.e.voidsetClaimsForSubject(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, getMetadataAttributePath, getProtocol, init, postInit, setMapperModelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfigMethods inherited from interface org.keycloak.protocol.oid4vc.OID4VCEnvironmentProviderFactory
isSupportedMethods inherited from interface org.keycloak.protocol.ProtocolMapper
getEffectiveModel, getPriority, validateConfigMethods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, order
-
Field Details
-
MAPPER_ID
- See Also:
-
TRUNCATE_TO_TIME_UNIT_KEY
- See Also:
-
VALUE_SOURCE
- See Also:
-
-
Constructor Details
-
OID4VCIssuedAtTimeClaimMapper
public OID4VCIssuedAtTimeClaimMapper()
-
-
Method Details
-
getIndividualConfigProperties
- Specified by:
getIndividualConfigPropertiesin classOID4VCMapper
-
includeInMetadata
public boolean includeInMetadata()this claim is not added by default to the metadata- Overrides:
includeInMetadatain classOID4VCMapper
-
setClaimsForCredential
public void setClaimsForCredential(VerifiableCredential verifiableCredential, UserSessionModel userSessionModel) Description copied from class:OID4VCMapperSet the claims to credential, like f.e. the context- Specified by:
setClaimsForCredentialin classOID4VCMapper
-
setClaimsForSubject
Description copied from class:OID4VCMapperSet the claims to the credential subject.- Specified by:
setClaimsForSubjectin classOID4VCMapper
-
getDisplayType
-
getHelpText
-
create
-
getId
-