Class SupportedCredentialConfiguration
java.lang.Object
org.keycloak.protocol.oid4vc.model.SupportedCredentialConfiguration
A supported credential, as used in the Credentials Issuer Metadata in OID4VCI
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the verifiable credential type.boolean
fromDotNotation
(String credentialId, Map<String, String> dotNotated) getId()
getScope()
getVct()
int
hashCode()
setCredentialDefinition
(CredentialDefinition credentialDefinition) setCredentialSigningAlgValuesSupported
(List<String> credentialSigningAlgValuesSupported) setCryptographicBindingMethodsSupported
(List<String> cryptographicBindingMethodsSupported) setCryptographicSuitesSupported
(List<String> cryptographicSuitesSupported) setDisplay
(List<DisplayObject> display) setProofTypesSupported
(ProofTypesSupported proofTypesSupported)
-
Constructor Details
-
SupportedCredentialConfiguration
public SupportedCredentialConfiguration()
-
-
Method Details
-
getFormat
-
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-6 For 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
-
setFormat
-
getScope
-
setScope
-
getCryptographicBindingMethodsSupported
-
setCryptographicBindingMethodsSupported
public SupportedCredentialConfiguration setCryptographicBindingMethodsSupported(List<String> cryptographicBindingMethodsSupported) -
getCryptographicSuitesSupported
-
setCryptographicSuitesSupported
public SupportedCredentialConfiguration setCryptographicSuitesSupported(List<String> cryptographicSuitesSupported) -
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) -
toDotNotation
-
fromDotNotation
public static SupportedCredentialConfiguration fromDotNotation(String credentialId, Map<String, String> dotNotated) -
equals
-
hashCode
public int hashCode()
-