Enum PresentationExchangeState
- java.lang.Object
-
- java.lang.Enum<PresentationExchangeState>
-
- org.hyperledger.aries.api.present_proof.PresentationExchangeState
-
- All Implemented Interfaces:
Serializable,Comparable<PresentationExchangeState>
public enum PresentationExchangeState extends Enum<PresentationExchangeState>
ARIES presentation exchange states for V1 and V2.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABANDONEDV2 state onlyDECLINEDNot an aries state, can be used in a manual proof exchange to mark the state as declined if the request was not acceptedDONEV2 state onlyPRESENTATION_ACKEDV1 state onlyPRESENTATION_RECEIVEDPRESENTATIONS_SENTPROPOSAL_RECEIVEDPROPOSAL_SENTREQUEST_RECEIVEDREQUEST_SENTVERIFIEDV1 state only
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PresentationExchangeStatevalueOf(String name)Returns the enum constant of this type with the specified name.static PresentationExchangeState[]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 PresentationExchangeState PROPOSAL_SENT
-
PROPOSAL_RECEIVED
@SerializedName(value="proposal_received", alternate="proposal-received") public static final PresentationExchangeState PROPOSAL_RECEIVED
-
REQUEST_SENT
@SerializedName(value="request_sent", alternate="request-sent") public static final PresentationExchangeState REQUEST_SENT
-
REQUEST_RECEIVED
@SerializedName(value="request_received", alternate="request-received") public static final PresentationExchangeState REQUEST_RECEIVED
-
PRESENTATIONS_SENT
@SerializedName(value="presentation_sent", alternate="presentation-sent") public static final PresentationExchangeState PRESENTATIONS_SENT
-
PRESENTATION_RECEIVED
@SerializedName(value="presentation_received", alternate="presentation-received") public static final PresentationExchangeState PRESENTATION_RECEIVED
-
VERIFIED
@SerializedName("verified") public static final PresentationExchangeState VERIFIEDV1 state only
-
PRESENTATION_ACKED
@SerializedName("presentation_acked") public static final PresentationExchangeState PRESENTATION_ACKEDV1 state only
-
DONE
@SerializedName("done") public static final PresentationExchangeState DONEV2 state only
-
ABANDONED
@SerializedName("abandoned") public static final PresentationExchangeState ABANDONEDV2 state only
-
DECLINED
@SerializedName("declined") public static final PresentationExchangeState DECLINEDNot an aries state, can be used in a manual proof exchange to mark the state as declined if the request was not accepted
-
-
Method Detail
-
values
public static PresentationExchangeState[] 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 (PresentationExchangeState c : PresentationExchangeState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PresentationExchangeState 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
-
-