public class EncryptRequest extends Object
Constructor and Description |
---|
EncryptRequest() |
Modifier and Type | Method and Description |
---|---|
EncryptRequest |
ad(byte[] ad) |
EncryptRequest |
alg(ObjectType alg) |
boolean |
equals(Object o) |
byte[] |
getAd()
For symmetric ciphers with cipher mode GCM or CCM, this optionally specifies the authenticated data used by the cipher.
|
ObjectType |
getAlg()
Get alg
|
byte[] |
getIv()
For symmetric ciphers, this value will be used for the cipher initialization value.
|
CryptMode |
getMode()
Get mode
|
byte[] |
getPlain()
The plaintext to encrypt.
|
Integer |
getTagLen()
For symmetric ciphers with cipher mode GCM or CCM, this field specifies the length of the authentication tag to be produced.
|
int |
hashCode() |
EncryptRequest |
iv(byte[] iv) |
EncryptRequest |
mode(CryptMode mode) |
EncryptRequest |
plain(byte[] plain) |
void |
setAd(byte[] ad) |
void |
setAlg(ObjectType alg) |
void |
setIv(byte[] iv) |
void |
setMode(CryptMode mode) |
void |
setPlain(byte[] plain) |
void |
setTagLen(Integer tagLen) |
EncryptRequest |
tagLen(Integer tagLen) |
String |
toString() |
public EncryptRequest alg(ObjectType alg)
public ObjectType getAlg()
public void setAlg(ObjectType alg)
public EncryptRequest plain(byte[] plain)
public byte[] getPlain()
public void setPlain(byte[] plain)
public EncryptRequest mode(CryptMode mode)
public CryptMode getMode()
public void setMode(CryptMode mode)
public EncryptRequest iv(byte[] iv)
public byte[] getIv()
public void setIv(byte[] iv)
public EncryptRequest ad(byte[] ad)
public byte[] getAd()
public void setAd(byte[] ad)
public EncryptRequest tagLen(Integer tagLen)
public Integer getTagLen()
public void setTagLen(Integer tagLen)
Copyright © 2017-2023 Fortanix Inc. All Rights Reserved