Enum CredentialExchangeState
- java.lang.Object
-
- java.lang.Enum<CredentialExchangeState>
-
- org.hyperledger.aries.api.issue_credential_v1.CredentialExchangeState
-
- All Implemented Interfaces:
Serializable,Comparable<CredentialExchangeState>
public enum CredentialExchangeState extends Enum<CredentialExchangeState>
Manual credential exchange via aca-py rest api: 1. Holder: /issue-credential/send-proposal 2. Issuer: /issue-credential/records/{id}/send-offer 3. Holder: /issue-credential/records/{id}/send-request 4. Issuer: /issue-credential/records/{id}/send 5. Holder:/issue-credential/records/{id}/store
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABANDONEDCredential exchange abandonedCREDENTIAL_ACKEDV1 state only Step5: Credential exchange completedCREDENTIAL_ISSUEDStep 4: Issuer sends credential to holderCREDENTIAL_RECEIVEDStep 4: Holder receives credential from issuerCREDENTIAL_REVOKEDCredential has been revokedDECLINEDNot an aries state, but useful in business logic reacting on these statesDONEV2 state only Step 5: Credential exchange completedOFFER_RECEIVEDStep 2: Holder receives (counter) offer from issuerOFFER_SENTStep 2: Issuer sends counter offer to holder, issuer can also start the process by sending an offer without receiving a proposal firstPROBLEMNot an aries state, but useful in business logic reacting on these statesPROPOSAL_RECEIVEDStep 1: Issuer receives credential proposal from holderPROPOSAL_SENTStep 1: Holder sends proposal to issuerREQUEST_RECEIVEDStep 3: Issuer receives credential request from holderREQUEST_SENTStep 3: Holder requests credential from issuer
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CredentialExchangeStatefromV2(V20CredExRecord.StateEnum v2)Maps v2 credential exchange states to their respective v1 statesstatic CredentialExchangeStatevalueOf(String name)Returns the enum constant of this type with the specified name.static CredentialExchangeState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROPOSAL_SENT
@SerializedName(value="proposal_sent", alternate="proposal-sent") public static final CredentialExchangeState PROPOSAL_SENTStep 1: Holder sends proposal to issuer
-
PROPOSAL_RECEIVED
@SerializedName(value="proposal_received", alternate="proposal-received") public static final CredentialExchangeState PROPOSAL_RECEIVEDStep 1: Issuer receives credential proposal from holder
-
OFFER_SENT
@SerializedName(value="offer_sent", alternate="offer-sent") public static final CredentialExchangeState OFFER_SENTStep 2: Issuer sends counter offer to holder, issuer can also start the process by sending an offer without receiving a proposal first
-
OFFER_RECEIVED
@SerializedName(value="offer_received", alternate="offer-received") public static final CredentialExchangeState OFFER_RECEIVEDStep 2: Holder receives (counter) offer from issuer
-
REQUEST_SENT
@SerializedName(value="request_sent", alternate="request-sent") public static final CredentialExchangeState REQUEST_SENTStep 3: Holder requests credential from issuer
-
REQUEST_RECEIVED
@SerializedName(value="request_received", alternate="request-received") public static final CredentialExchangeState REQUEST_RECEIVEDStep 3: Issuer receives credential request from holder
-
CREDENTIAL_ISSUED
@SerializedName(value="credential_issued", alternate="credential-issued") public static final CredentialExchangeState CREDENTIAL_ISSUEDStep 4: Issuer sends credential to holder
-
CREDENTIAL_RECEIVED
@SerializedName(value="credential_received", alternate="credential-received") public static final CredentialExchangeState CREDENTIAL_RECEIVEDStep 4: Holder receives credential from issuer
-
CREDENTIAL_ACKED
@SerializedName(value="credential_acked", alternate="credential-acked") public static final CredentialExchangeState CREDENTIAL_ACKEDV1 state only Step5: Credential exchange completed
-
DONE
@SerializedName("done") public static final CredentialExchangeState DONEV2 state only Step 5: Credential exchange completed
-
CREDENTIAL_REVOKED
@SerializedName(value="credential_revoked", alternate={"revoked","credential-revoked"}) public static final CredentialExchangeState CREDENTIAL_REVOKEDCredential has been revoked
-
ABANDONED
@SerializedName("abandoned") public static final CredentialExchangeState ABANDONEDCredential exchange abandoned
-
DECLINED
@SerializedName("declined") public static final CredentialExchangeState DECLINEDNot an aries state, but useful in business logic reacting on these states
-
PROBLEM
@SerializedName("problem") public static final CredentialExchangeState PROBLEMNot an aries state, but useful in business logic reacting on these states
-
-
Method Detail
-
values
public static CredentialExchangeState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CredentialExchangeState c : CredentialExchangeState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CredentialExchangeState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromV2
public static CredentialExchangeState fromV2(@NonNull V20CredExRecord.StateEnum v2)
Maps v2 credential exchange states to their respective v1 states- Parameters:
v2-V20CredExRecord.StateEnum- Returns:
CredentialExchangeState
-
-