Interface CredentialCreate
- All Superinterfaces:
Transaction
- All Known Implementing Classes:
ImmutableCredentialCreate
A
CredentialCreate transaction creates a `Credential` object in the ledger. The sender of this transaction is
the issuer of the credential.-
Field Summary
Fields inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
typeMap -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Construct aCredentialCreatebuilder.A (hex-encoded) value to identify the type of credential from the issuer.Optional<com.google.common.primitives.UnsignedLong> Time after which this credential expires.default TransactionFlagsflags()Set ofTransactionFlags's for thisCredentialCreate, which only allows thetfFullyCanonicalSigflag, which is deprecated.subject()The subject of the credential.uri()Arbitrary additional data about the credential, such as the URL where users can look up an associated Verifiable Credential document.Methods inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
account, accountTransactionId, delegate, fee, lastLedgerSequence, memos, networkId, sequence, signers, signingPublicKey, sourceTag, ticketSequence, transactionFlags, transactionSignature, transactionType, unknownFields, validateDelegateNotSameAsAccount
-
Method Details
-
builder
Construct aCredentialCreatebuilder.- Returns:
- An
ImmutableCredentialCreate.Builder.
-
subject
Address subject()The subject of the credential.- Returns:
- The unique
Addressof the subject this credential.
-
credentialType
CredentialType credentialType()A (hex-encoded) value to identify the type of credential from the issuer.- Returns:
- A
CredentialTypedefining the type of credential.
-
expiration
Optional<com.google.common.primitives.UnsignedLong> expiration()Time after which this credential expires.- Returns:
- An
Optionalof typeUnsignedLongrepresenting the credential's expiration time.
-
uri
Optional<CredentialUri> uri()Arbitrary additional data about the credential, such as the URL where users can look up an associated Verifiable Credential document.- Returns:
- An optionally-present
CredentialUri.
-
flags
Set ofTransactionFlags's for thisCredentialCreate, which only allows thetfFullyCanonicalSigflag, which is deprecated.- Returns:
- Always
TransactionFlags.EMPTY.
-