Class CredentialOfferState
java.lang.Object
org.keycloak.protocol.oid4vc.issuance.credentialoffer.CredentialOfferState
-
Constructor Summary
ConstructorsConstructorDescriptionCredentialOfferState(CredentialsOffer credOffer, String clientId, String userId, long expiresAt, Function<String, List<OID4VCAuthorizationDetail>> authDetailsProvider) Create a new CredentialOfferState. -
Method Summary
Modifier and TypeMethodDescriptiongetAuthorizationDetails(String credConfigId) longgetNonce()boolean
-
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 offerclientId- The target client_iduserId- The target user idexpiresAt- The expiry date of the offer in secondsauthDetailsProvider- A provider function for authorization details, (optionally) one for each credential_configuration_id
-
-
Method Details
-
getPreAuthorizedCode
-
getCredentialsOfferId
-
getCredentialsOffer
-
getTargetClientId
-
getTargetUserId
-
getNonce
-
getTxCode
-
getExpiresAt
public long getExpiresAt() -
getAuthorizationDetails
-
getAuthorizationDetails
-
isExpired
public boolean isExpired()
-