Class CredentialOfferState

java.lang.Object
org.keycloak.protocol.oid4vc.issuance.credentialoffer.CredentialOfferState

public class CredentialOfferState extends Object
  • Constructor Details

    • CredentialOfferState

      public CredentialOfferState(CredentialsOffer credOffer, String clientId, String userId, long expiresAt, Function<String,List<OID4VCAuthorizationDetail>> authDetailsProvider)
      Create a new CredentialOfferState.

      This should only be called from the configured CredentialOfferProvider. The constructor is public for testing purposes only.

      Parameters:
      credOffer - The credential offer
      clientId - The target client_id
      userId - The target user id
      expiresAt - The expiry date of the offer in seconds
      authDetailsProvider - A provider function for authorization details, (optionally) one for each credential_configuration_id
  • Method Details

    • getPreAuthorizedCode

      public Optional<String> getPreAuthorizedCode()
    • getCredentialsOfferId

      public String getCredentialsOfferId()
    • getCredentialsOffer

      public CredentialsOffer getCredentialsOffer()
    • getTargetClientId

      public String getTargetClientId()
    • getTargetUserId

      public String getTargetUserId()
    • getNonce

      public String getNonce()
    • getTxCode

      public String getTxCode()
    • getExpiresAt

      public long getExpiresAt()
    • getAuthorizationDetails

      public List<OID4VCAuthorizationDetail> getAuthorizationDetails()
    • getAuthorizationDetails

      public OID4VCAuthorizationDetail getAuthorizationDetails(String credConfigId)
    • isExpired

      public boolean isExpired()