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 TypeMethodDescriptionbooleaninthashCode()static CiphertextFactory method to createCiphertextfrom the givenciphertext.with(VaultTransitContext context) Create a newCiphertextobject from this ciphertext associated with the givenVaultTransitContext.
-
Method Details
-
of
Factory method to createCiphertextfrom the givenciphertext.- Parameters:
ciphertext- the cipher text to decrypt, must not be null or empty.- Returns:
- the
Ciphertextforciphertext.
-
getCiphertext
-
getContext
-
with
Create a newCiphertextobject from this ciphertext associated with the givenVaultTransitContext.- Parameters:
context- transit context, must not be null.- Returns:
- the new
Ciphertextobject.
-
equals
-
hashCode
public int hashCode()
-