Class OID4VCIssuerWellKnownProvider

java.lang.Object
org.keycloak.protocol.oid4vc.issuance.OID4VCIssuerWellKnownProvider
All Implemented Interfaces:
Provider, WellKnownProvider

public class OID4VCIssuerWellKnownProvider extends Object implements WellKnownProvider
WellKnownProvider implementation to provide the .well-known/openid-credential-issuer endpoint, offering the Credential Issuer Metadata as defined by the OID4VCI protocol
Author:
Stefan Wiedemann
  • Field Details

  • Constructor Details

    • OID4VCIssuerWellKnownProvider

      public OID4VCIssuerWellKnownProvider(KeycloakSession keycloakSession)
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface Provider
    • getConfig

      public Object getConfig()
      Specified by:
      getConfig in interface WellKnownProvider
    • getSupportedCredentials

      public static Map<String,SupportedCredentialConfiguration> getSupportedCredentials(KeycloakSession keycloakSession)
      Return the supported credentials from the current session. It will take into account the configured CredentialBuilder's and there supported format and the credentials supported by the clients available in the session.
    • getIssuer

      public static String getIssuer(KeycloakContext context)
      Return the url of the issuer.
    • getCredentialsEndpoint

      public static String getCredentialsEndpoint(KeycloakContext context)
      Return the credentials endpoint address
    • fromRealmAttributes

      public static List<SupportedCredentialConfiguration> fromRealmAttributes(Map<String,String> realmAttributes)
    • getSupportedFormats

      public static List<String> getSupportedFormats(KeycloakSession keycloakSession)
      Returns credential formats supported.

      Supported credential formats are identified on the criterion of a joint availability of a credential builder (as a configured component) AND a credential signer.
    • getSupportedSignatureAlgorithms

      public static List<String> getSupportedSignatureAlgorithms(KeycloakSession session)