Class V2ToV1IndyCredentialConverter
- java.lang.Object
-
- org.hyperledger.aries.api.issue_credential_v2.V2ToV1IndyCredentialConverter
-
public class V2ToV1IndyCredentialConverter extends Object
Converts a V2 credential exchange record into aCredentialrepresentation.
-
-
Constructor Summary
Constructors Constructor Description V2ToV1IndyCredentialConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static V2ToV1IndyCredentialConverterINSTANCE()Optional<Credential>toV1Credential(@NonNull V20CredExRecord v2Record)Converts v2 indy record into aCredentialOnly works when the exchange state is 'done' and type is 'indy'V1CredentialExchangetoV1Offer(@NonNull V20CredExRecord v2Record)V1CredentialExchangetoV1Proposal(@NonNull V20CredExRecord v2Record)Convert v2 indy credential exchange record in state proposal-received to a v1 record
-
-
-
Method Detail
-
INSTANCE
public static V2ToV1IndyCredentialConverter INSTANCE()
-
toV1Proposal
public V1CredentialExchange toV1Proposal(@NonNull @NonNull V20CredExRecord v2Record)
Convert v2 indy credential exchange record in state proposal-received to a v1 record- Parameters:
v2Record-V20CredExRecord- Returns:
V1CredentialExchange
-
toV1Offer
public V1CredentialExchange toV1Offer(@NonNull @NonNull V20CredExRecord v2Record)
-
toV1Credential
public Optional<Credential> toV1Credential(@NonNull @NonNull V20CredExRecord v2Record)
Converts v2 indy record into aCredentialOnly works when the exchange state is 'done' and type is 'indy'- Parameters:
v2Record-V20CredExRecord- Returns:
- optional
Credential
-
-