Class OID4VCSubjectIdMapper
java.lang.Object
org.keycloak.protocol.oid4vc.issuance.mappers.OID4VCMapper
org.keycloak.protocol.oid4vc.issuance.mappers.OID4VCSubjectIdMapper
- All Implemented Interfaces:
OID4VCEnvironmentProviderFactory
,ProtocolMapper
,ConfiguredProvider
,EnvironmentDependentProviderFactory
,Provider
,ProviderFactory<ProtocolMapper>
Sets an ID for the credential, either randomly generated or statically configured
- Author:
- Stefan Wiedemann
-
Field Summary
Fields inherited from class org.keycloak.protocol.oid4vc.issuance.mappers.OID4VCMapper
mapperModel, SUPPORTED_CREDENTIALS_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProtocolMapperModel
create
(KeycloakSession session) getId()
protected List<ProviderConfigProperty>
void
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, getConfigProperties, getDisplayCategory, getProtocol, init, isScopeSupported, 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
getConfigMetadata, order
-
Field Details
-
MAPPER_ID
- See Also:
-
ID_KEY
- See Also:
-
-
Constructor Details
-
OID4VCSubjectIdMapper
public OID4VCSubjectIdMapper()
-
-
Method Details
-
getIndividualConfigProperties
- Specified by:
getIndividualConfigProperties
in classOID4VCMapper
-
create
-
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
-