OnixS C++ FIX Engine 4.13.0
API Documentation
Loading...
Searching...
No Matches
SecureStringBuilder Class Reference

Public Member Functions

 SecureStringBuilder ()
 SecureStringBuilder (FIX::StringRef plainText)
 SecureStringBuilder (const char *plainText, size_t plainTextLength)
 SecureStringBuilder (const SecureStringBuilder &other)
SecureStringBuilderoperator= (const SecureStringBuilder &other)
 ~SecureStringBuilder ()
size_t length () const
SecureString detach ()
void assign (FIX::StringRef plainText)
void assign (const char *plainText, size_t plainTextLength)
void append (char c)
void insert (size_t index, char c)
void replace (size_t index, char c)
void erase (size_t index)
void clear ()

Detailed Description

Definition at line 70 of file SecureString.h.

Constructor & Destructor Documentation

◆ SecureStringBuilder() [1/4]

SecureStringBuilder ( )
explicit

Constructs the empty SecureStringBuilder.

◆ SecureStringBuilder() [2/4]

SecureStringBuilder ( FIX::StringRef plainText)
explicit

Constructs the SecureStringBuilder which stores the encrypted plainText as an initial value.

Parameters
plainTextThe plain text to be encrypted and stored.

◆ SecureStringBuilder() [3/4]

SecureStringBuilder ( const char * plainText,
size_t plainTextLength )

Constructs the SecureStringBuilder which stores the encrypted plainText as an initial value.

Parameters
plainTextThe plain text to be encrypted and stored.
plainTextLengthThe plain text length.

◆ SecureStringBuilder() [4/4]

Initializes the instance as a deep copy of other one.

◆ ~SecureStringBuilder()

Member Function Documentation

◆ append()

void append ( char c)

Appends a character to the end of the current secure string.

◆ assign() [1/2]

void assign ( const char * plainText,
size_t plainTextLength )

Replaces internal value with a new one.

Parameters
plainTextThe plain text to be encrypted and stored.
plainTextLengthThe plain text length.

◆ assign() [2/2]

void assign ( FIX::StringRef plainText)

Replaces the secure value with a new one.

Parameters
plainTextplain text to be encrypted and stored.

◆ clear()

void clear ( )

Deletes the value of the current secure string.

◆ detach()

SecureString detach ( )

Moves the encoded data to the immutable SecureString object.

SecureStringBuilder becomes empty after detaching.

◆ erase()

void erase ( size_t index)

Removes the character at the specified index position from this secure string.

◆ insert()

void insert ( size_t index,
char c )

Inserts a character in this secure string at the specified index position.

◆ length()

size_t length ( ) const

Gets the number of characters in the current secure string.

◆ operator=()

SecureStringBuilder & operator= ( const SecureStringBuilder & other)

Makes a deep copy of another SecureStringBuilder.

◆ replace()

void replace ( size_t index,
char c )

Replaces the existing character at the specified index position with another character.