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 verifiable credential type.boolean
getId()
getScope()
getVct()
int
hashCode()
parse
(KeycloakSession keycloakSession, CredentialScopeModel credentialScope, List<String> globalSupportedSigningAlgorithms) setCredentialBuildConfig
(CredentialBuildConfig credentialBuildConfig) setCredentialDefinition
(CredentialDefinition credentialDefinition) setCredentialSigningAlgValuesSupported
(List<String> credentialSigningAlgValuesSupported) setCryptographicBindingMethodsSupported
(List<String> cryptographicBindingMethodsSupported) setDisplay
(List<DisplayObject> display) setProofTypesSupported
(ProofTypesSupported proofTypesSupported)
-
Field Details
-
DOT_SEPARATOR
- See Also:
-
VERIFIABLE_CREDENTIAL_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 verifiable credential type. Sort of confusing in the specification. For sdjwt, we have a "vct" claim. See: https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html#name-credential-request-6For iso mdl (not yet supported) we have a "doctype" See: https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html#name-credential-request-5
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:
-
deriveConfiId
-
getFormat
-
setFormat
-
getScope
-
setScope
-
getCryptographicBindingMethodsSupported
-
setCryptographicBindingMethodsSupported
public SupportedCredentialConfiguration setCryptographicBindingMethodsSupported(List<String> cryptographicBindingMethodsSupported) -
getDisplay
-
setDisplay
-
getId
-
setId
-
getCredentialSigningAlgValuesSupported
-
setCredentialSigningAlgValuesSupported
public SupportedCredentialConfiguration setCredentialSigningAlgValuesSupported(List<String> credentialSigningAlgValuesSupported) -
getClaims
-
setClaims
-
getVct
-
setVct
-
getCredentialDefinition
-
setCredentialDefinition
public SupportedCredentialConfiguration setCredentialDefinition(CredentialDefinition credentialDefinition) -
getProofTypesSupported
-
setProofTypesSupported
public SupportedCredentialConfiguration setProofTypesSupported(ProofTypesSupported proofTypesSupported) -
getCredentialBuildConfig
-
setCredentialBuildConfig
public SupportedCredentialConfiguration setCredentialBuildConfig(CredentialBuildConfig credentialBuildConfig) -
equals
-
hashCode
public int hashCode()
-