public class WrapKeyParams extends Object
Constructor and Description |
---|
WrapKeyParams() |
Modifier and Type | Method and Description |
---|---|
WrapKeyParams |
ad(byte[] ad) |
WrapKeyParams |
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.
|
SobjectDescriptor |
getKey()
Get key
|
CipherMode |
getMode()
Get mode
|
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() |
WrapKeyParams |
iv(byte[] iv) |
WrapKeyParams |
key(SobjectDescriptor key) |
WrapKeyParams |
mode(CipherMode mode) |
void |
setAd(byte[] ad) |
void |
setAlg(ObjectType alg) |
void |
setIv(byte[] iv) |
void |
setKey(SobjectDescriptor key) |
void |
setMode(CipherMode mode) |
void |
setTagLen(Integer tagLen) |
WrapKeyParams |
tagLen(Integer tagLen) |
String |
toString() |
public WrapKeyParams key(SobjectDescriptor key)
public SobjectDescriptor getKey()
public void setKey(SobjectDescriptor key)
public WrapKeyParams alg(ObjectType alg)
public ObjectType getAlg()
public void setAlg(ObjectType alg)
public WrapKeyParams mode(CipherMode mode)
public CipherMode getMode()
public void setMode(CipherMode mode)
public WrapKeyParams iv(byte[] iv)
public byte[] getIv()
public void setIv(byte[] iv)
public WrapKeyParams ad(byte[] ad)
public byte[] getAd()
public void setAd(byte[] ad)
public WrapKeyParams tagLen(Integer tagLen)
public Integer getTagLen()
public void setTagLen(Integer tagLen)
Copyright © 2017-2023 Fortanix Inc. All Rights Reserved