public class CipherMetaDataHolder extends Object
| Constructor and Description |
|---|
CipherMetaDataHolder() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getCipherBase64Decoded() |
String |
getCipherText() |
String |
getIv()
Method to return the initialization vector in AES/GCM/NoPadding transformation.
|
byte[] |
getIvBase64Decoded()
Method to return initialization vector as a byte array
|
byte[] |
getSelfContainedCiphertextWithIv(byte[] originalCipher,
byte[] iv) |
String |
getThumbPrint() |
String |
getThumbprintDigest() |
String |
getTransformation() |
void |
setCipherBase64Encoded(byte[] cipher)
Function to base64 encode ciphertext and set ciphertext
|
void |
setCipherText(String cipher) |
void |
setIv(String iv)
Method to set the initialization vector in AES/GCM/NoPadding transformation.
|
void |
setIvAndOriginalCipherText(byte[] cipherTextBytes)
This method will extract the initialization vector and original ciphertext from input ciphertext and set them
to metadata in CipherMetaDataHolder object.
|
void |
setThumbPrint(String tp) |
void |
setThumbPrint(String tp,
String digest)
Function to set thumbprint
|
void |
setThumbprintDigest(String digest) |
void |
setTransformation(String transformation) |
String |
toString() |
public String getTransformation()
public void setTransformation(String transformation)
public String getCipherText()
public byte[] getCipherBase64Decoded()
public void setCipherText(String cipher)
public String getThumbPrint()
public void setThumbPrint(String tp)
public String getThumbprintDigest()
public void setThumbprintDigest(String digest)
public String getIv()
public void setIv(String iv)
iv - initialization vector value in String formatpublic byte[] getIvBase64Decoded()
public void setCipherBase64Encoded(byte[] cipher)
cipher - public void setThumbPrint(String tp, String digest)
tp - thumb printdigest - digest (hash algorithm) used for to create thumb printpublic byte[] getSelfContainedCiphertextWithIv(byte[] originalCipher,
byte[] iv)
public void setIvAndOriginalCipherText(byte[] cipherTextBytes)
cipherTextBytes - This input cipher text contains both original cipher and iv.Copyright © 2020 WSO2. All rights reserved.