Class SupportedCredentialConfiguration
java.lang.Object
org.keycloak.protocol.oid4vc.model.SupportedCredentialConfiguration
A supported credential, as used in the Credentials Issuer Metadata in OID4VCI
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the format-specific credential type identifier.booleangetId()getScope()getVct()inthashCode()parse(KeycloakSession keycloakSession, CredentialScopeModel credentialScope, List<String> globalSupportedSigningAlgorithms) setCredentialBuildConfig(CredentialBuildConfig credentialBuildConfig) setCredentialDefinition(CredentialDefinition credentialDefinition) setCredentialMetadata(CredentialMetadata credentialMetadata) setCredentialSigningAlgValuesSupported(List<Object> credentialSigningAlgValuesSupported) setCryptographicBindingMethodsSupported(List<String> cryptographicBindingMethodsSupported) setDocType(String docType) setProofTypesSupported(ProofTypesSupported proofTypesSupported)
-
Field Details
-
VERIFIABLE_CREDENTIAL_TYPE_KEY
- See Also:
-
DOC_TYPE_KEY
- See Also:
-
CREDENTIAL_BUILD_CONFIG_KEY
- See Also:
-
-
Constructor Details
-
SupportedCredentialConfiguration
public SupportedCredentialConfiguration()
-
-
Method Details
-
parse
public static SupportedCredentialConfiguration parse(KeycloakSession keycloakSession, CredentialScopeModel credentialScope, List<String> globalSupportedSigningAlgorithms) - Parameters:
credentialScope- The scope that holds the credentials configurationglobalSupportedSigningAlgorithms- added as a parameter to avoid reading the global config from the session for each credential- Returns:
- the credentials configuration that was entered into the ClientScope
-
deriveType
Return the format-specific credential type identifier. For SD-JWT VC it is emitted as "vct"; for mDoc it is emitted as "doctype".For jwt_vc and ldp_vc, we will be inferring from the "credential_definition" See: https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html#name-credential-request-3
- Returns:
-
deriveConfigId
-
getFormat
-
setFormat
-
getDocType
-
setDocType
-
getScope
-
setScope
-
getCryptographicBindingMethodsSupported
-
setCryptographicBindingMethodsSupported
public SupportedCredentialConfiguration setCryptographicBindingMethodsSupported(List<String> cryptographicBindingMethodsSupported) -
getId
-
setId
-
getCredentialSigningAlgValuesSupported
-
setCredentialSigningAlgValuesSupported
public SupportedCredentialConfiguration setCredentialSigningAlgValuesSupported(List<Object> credentialSigningAlgValuesSupported) -
getVct
-
setVct
-
getCredentialDefinition
-
setCredentialDefinition
public SupportedCredentialConfiguration setCredentialDefinition(CredentialDefinition credentialDefinition) -
getProofTypesSupported
-
setProofTypesSupported
public SupportedCredentialConfiguration setProofTypesSupported(ProofTypesSupported proofTypesSupported) -
getCredentialMetadata
-
setCredentialMetadata
public SupportedCredentialConfiguration setCredentialMetadata(CredentialMetadata credentialMetadata) -
getCredentialBuildConfig
-
setCredentialBuildConfig
public SupportedCredentialConfiguration setCredentialBuildConfig(CredentialBuildConfig credentialBuildConfig) -
equals
-
hashCode
public int hashCode()
-