Interface PlainStringBuilder
- All Superinterfaces:
DataContentBuilder<PlainString>
- All Known Implementing Classes:
PlainStringBuilder.DefaultPlainStringBuilder
Builder interface for constructing
PlainString instances, which
represent unencrypted textual content.
This builder supports specifying a string value to be encapsulated and optionally used in cryptographic processing pipelines, although the value itself remains unencrypted.
The DataContentBuilder.build(boolean) method accepts an encrypt flag to comply
with the DataContentBuilder interface. However, this flag is ignored
because PlainString represents unencrypted data.
Usage example:
PlainString plainText = PlainStringBuilder.builder()
.value("Hello, World!")
.build(true); // encrypt flag is ignored for PlainString
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classDefault implementation of thePlainStringBuilderinterface. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlainStringBuilderbuilder()Creates a new instance of the default builder implementation.Sets the string value that thePlainStringinstance will contain.Methods inherited from interface DataContentBuilder
build
-
Method Details
-
builder
Creates a new instance of the default builder implementation.- Returns:
- a new
PlainStringBuilder
-
value
Sets the string value that thePlainStringinstance will contain.- Parameters:
value- the string value; may benullor empty depending on usage- Returns:
- this builder instance
-