public interface EncryptionMethod
EncryptionMethod
describes the encryption algorithm applied to
the cipher data. If the element is absent, the encryption algorithm must be
known by the recipient or the decryption will fail.
It is defined as follows:
Modifier and Type | Method and Description |
---|---|
void |
addEncryptionMethodInformation(Element information)
Adds encryption method information.
|
String |
getAlgorithm()
Returns the algorithm applied to the cipher data.
|
String |
getDigestAlgorithm()
Get the Digest Algorithm to use
|
Iterator<Element> |
getEncryptionMethodInformation()
Returns an iterator over all the additional elements contained in the
EncryptionMethod . |
int |
getKeySize()
Returns the key size of the key of the algorithm applied to the cipher
data.
|
String |
getMGFAlgorithm()
Get the MGF Algorithm to use
|
byte[] |
getOAEPparams()
Returns the OAEP parameters of the algorithm applied applied to the
cipher data.
|
void |
removeEncryptionMethodInformation(Element information)
Removes encryption method information.
|
void |
setDigestAlgorithm(String digestAlgorithm)
Set the Digest Algorithm to use
|
void |
setKeySize(int size)
Sets the size of the key of the algorithm applied to the cipher data.
|
void |
setMGFAlgorithm(String mgfAlgorithm)
Set the MGF Algorithm to use
|
void |
setOAEPparams(byte[] parameters)
Sets the OAEP parameters.
|
String getAlgorithm()
int getKeySize()
void setKeySize(int size)
size
- the key size.byte[] getOAEPparams()
void setOAEPparams(byte[] parameters)
parameters
- the OAEP parameters.void setDigestAlgorithm(String digestAlgorithm)
digestAlgorithm
- the Digest Algorithm to useString getDigestAlgorithm()
void setMGFAlgorithm(String mgfAlgorithm)
mgfAlgorithm
- the MGF Algorithm to useString getMGFAlgorithm()
Iterator<Element> getEncryptionMethodInformation()
EncryptionMethod
.Iterator
over all the additional information
about the EncryptionMethod
.void addEncryptionMethodInformation(Element information)
information
- additional encryption method information.void removeEncryptionMethodInformation(Element information)
information
- the information to remove from the
EncryptionMethod
.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.