Class Ciphertext
java.lang.Object
org.springframework.vault.support.Ciphertext
Value object representing cipher text with an optional
VaultTransitContext
.- Since:
- 1.1
- Author:
- Praveendra Singh, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static Ciphertext
Factory method to createCiphertext
from the givenciphertext
.with
(VaultTransitContext context) Create a newCiphertext
object from this ciphertext associated with the givenVaultTransitContext
.
-
Method Details
-
of
Factory method to createCiphertext
from the givenciphertext
.- Parameters:
ciphertext
- the cipher text to decrypt, must not be null or empty.- Returns:
- the
Ciphertext
forciphertext
.
-
getCiphertext
-
getContext
-
with
Create a newCiphertext
object from this ciphertext associated with the givenVaultTransitContext
.- Parameters:
context
- transit context, must not be null.- Returns:
- the new
Ciphertext
object.
-
equals
-
hashCode
public int hashCode()
-