|
rippled
|
Ledger Entry: Credential. More...
#include <Credential.h>


Public Member Functions | |
| Credential (std::shared_ptr< SLE const > sle) | |
| Construct a Credential ledger entry wrapper from an existing SLE object. | |
| SF_ACCOUNT::type::value_type | getSubject () const |
| Get sfSubject (soeREQUIRED) | |
| SF_ACCOUNT::type::value_type | getIssuer () const |
| Get sfIssuer (soeREQUIRED) | |
| SF_VL::type::value_type | getCredentialType () const |
| Get sfCredentialType (soeREQUIRED) | |
| protocol_autogen::Optional< SF_UINT32::type::value_type > | getExpiration () const |
| Get sfExpiration (soeOPTIONAL) | |
| bool | hasExpiration () const |
| Check if sfExpiration is present. | |
| protocol_autogen::Optional< SF_VL::type::value_type > | getURI () const |
| Get sfURI (soeOPTIONAL) | |
| bool | hasURI () const |
| Check if sfURI is present. | |
| SF_UINT64::type::value_type | getIssuerNode () const |
| Get sfIssuerNode (soeREQUIRED) | |
| protocol_autogen::Optional< SF_UINT64::type::value_type > | getSubjectNode () const |
| Get sfSubjectNode (soeOPTIONAL) | |
| bool | hasSubjectNode () const |
| Check if sfSubjectNode is present. | |
| SF_UINT256::type::value_type | getPreviousTxnID () const |
| Get sfPreviousTxnID (soeREQUIRED) | |
| SF_UINT32::type::value_type | getPreviousTxnLgrSeq () const |
| Get sfPreviousTxnLgrSeq (soeREQUIRED) | |
| bool | validate () const |
| Validate the ledger entry. | |
| LedgerEntryType | getType () const |
| Get the ledger entry type. | |
| uint256 const & | getKey () const |
| Get the key (index) of this ledger entry. | |
| std::optional< uint256 > | getLedgerIndex () const |
| Get the ledger index (sfLedgerIndex). | |
| bool | hasLedgerIndex () const |
| Check if the ledger entry has a ledger index. | |
| uint16_t | getLedgerEntryType () const |
| Get the ledger entry type field (sfLedgerEntryType). | |
| std::uint32_t | getFlags () const |
| Get the flags field (sfFlags). | |
| std::shared_ptr< SLE const > | getSle () const |
| Get the underlying SLE object. | |
Static Public Attributes | |
| static constexpr LedgerEntryType | entryType = ltCREDENTIAL |
Protected Attributes | |
| std::shared_ptr< SLE const > | sle_ |
| The underlying serialized ledger entry being wrapped. | |
Ledger Entry: Credential.
Type: ltCREDENTIAL (0x0081) RPC Name: credential
Immutable wrapper around SLE providing type-safe field access. Use CredentialBuilder to construct new ledger entries.
Definition at line 27 of file Credential.h.
|
explicit |
Construct a Credential ledger entry wrapper from an existing SLE object.
| std::runtime_error | if the ledger entry type doesn't match. |
Definition at line 36 of file Credential.h.
| SF_ACCOUNT::type::value_type xrpl::ledger_entries::Credential::getSubject | ( | ) | const |
| SF_ACCOUNT::type::value_type xrpl::ledger_entries::Credential::getIssuer | ( | ) | const |
| SF_VL::type::value_type xrpl::ledger_entries::Credential::getCredentialType | ( | ) | const |
Get sfCredentialType (soeREQUIRED)
Definition at line 76 of file Credential.h.
| protocol_autogen::Optional< SF_UINT32::type::value_type > xrpl::ledger_entries::Credential::getExpiration | ( | ) | const |
Get sfExpiration (soeOPTIONAL)
Definition at line 87 of file Credential.h.
| bool xrpl::ledger_entries::Credential::hasExpiration | ( | ) | const |
Check if sfExpiration is present.
Definition at line 100 of file Credential.h.
| protocol_autogen::Optional< SF_VL::type::value_type > xrpl::ledger_entries::Credential::getURI | ( | ) | const |
Get sfURI (soeOPTIONAL)
Definition at line 111 of file Credential.h.
| bool xrpl::ledger_entries::Credential::hasURI | ( | ) | const |
Check if sfURI is present.
Definition at line 124 of file Credential.h.
| SF_UINT64::type::value_type xrpl::ledger_entries::Credential::getIssuerNode | ( | ) | const |
| protocol_autogen::Optional< SF_UINT64::type::value_type > xrpl::ledger_entries::Credential::getSubjectNode | ( | ) | const |
Get sfSubjectNode (soeOPTIONAL)
Definition at line 146 of file Credential.h.
| bool xrpl::ledger_entries::Credential::hasSubjectNode | ( | ) | const |
Check if sfSubjectNode is present.
Definition at line 159 of file Credential.h.
| SF_UINT256::type::value_type xrpl::ledger_entries::Credential::getPreviousTxnID | ( | ) | const |
Get sfPreviousTxnID (soeREQUIRED)
Definition at line 170 of file Credential.h.
| SF_UINT32::type::value_type xrpl::ledger_entries::Credential::getPreviousTxnLgrSeq | ( | ) | const |
Get sfPreviousTxnLgrSeq (soeREQUIRED)
Definition at line 181 of file Credential.h.
|
inherited |
Validate the ledger entry.
Definition at line 40 of file LedgerEntryBase.h.
|
inherited |
Get the ledger entry type.
Definition at line 57 of file LedgerEntryBase.h.
|
inherited |
Get the key (index) of this ledger entry.
The key uniquely identifies this ledger entry in the ledger state.
Definition at line 70 of file LedgerEntryBase.h.
|
inherited |
Get the ledger index (sfLedgerIndex).
This field is OPTIONAL and represents the index of the ledger entry.
Definition at line 85 of file LedgerEntryBase.h.
|
inherited |
Check if the ledger entry has a ledger index.
Definition at line 100 of file LedgerEntryBase.h.
|
inherited |
Get the ledger entry type field (sfLedgerEntryType).
This field is REQUIRED for all ledger entries and indicates the type of the ledger entry (e.g., AccountRoot, RippleState, Offer, etc.).
Definition at line 114 of file LedgerEntryBase.h.
|
inherited |
Get the flags field (sfFlags).
This field is REQUIRED for all ledger entries and contains type-specific flags that modify the behavior of the ledger entry.
Definition at line 128 of file LedgerEntryBase.h.
|
inherited |
Get the underlying SLE object.
Provides direct access to the wrapped serialized ledger entry object for cases where the type-safe accessors are insufficient.
Definition at line 142 of file LedgerEntryBase.h.
|
staticconstexpr |
Definition at line 30 of file Credential.h.
|
protectedinherited |
The underlying serialized ledger entry being wrapped.
Definition at line 149 of file LedgerEntryBase.h.