Class Plaintext
java.lang.Object
org.springframework.vault.support.Plaintext
Value object representing plain text with an optional
VaultTransitContext. Plaintext is represented binary safe as
byte[].- Since:
- 1.1
- Author:
- Praveendra Singh, Mark Paluch, Nanne Baars
-
Method Summary
Modifier and TypeMethodDescriptionasString()static Plaintextempty()Factory method to create an emptyPlaintext.booleanbyte[]inthashCode()static Plaintextof(byte[] plaintext) Factory method to createPlaintextfrom a byte sequence.static Plaintextstatic Plaintextwith(VaultTransitContext context) Create a newPlaintextobject from this plain text associated with the givenVaultTransitContext.
-
Method Details
-
empty
-
of
-
of
-
of
-
getPlaintext
public byte[] getPlaintext() -
getContext
-
with
Create a newPlaintextobject from this plain text associated with the givenVaultTransitContext.- Parameters:
context- transit context.- Returns:
- the new
Plaintextobject.
-
asString
-
asString
-
equals
-
hashCode
-