Class XMLCipher.Factory.EncryptionMethodImpl
java.lang.Object
org.apache.xml.security.encryption.XMLCipher.Factory.EncryptionMethodImpl
- All Implemented Interfaces:
EncryptionMethod
- Enclosing class:
XMLCipher.Factory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds encryption method information.Returns the algorithm applied to the cipher data.Get the Digest Algorithm to useReturns an iterator over all the additional elements contained in theEncryptionMethod.intReturns the key size of the key of the algorithm applied to the cipher data.Get the MGF Algorithm to usebyte[]Returns the OAEP parameters of the algorithm applied applied to the cipher data.voidRemoves encryption method information.voidsetDigestAlgorithm(String digestAlgorithm) Set the Digest Algorithm to usevoidsetKeySize(int size) Sets the size of the key of the algorithm applied to the cipher data.voidsetMGFAlgorithm(String mgfAlgorithm) Set the MGF Algorithm to usevoidsetOAEPparams(byte[] params) Sets the OAEP parameters.(package private) Element
-
Field Details
-
algorithm
-
keySize
private int keySize -
oaepParams
private byte[] oaepParams -
encryptionMethodInformation
-
digestAlgorithm
-
mgfAlgorithm
-
-
Constructor Details
-
EncryptionMethodImpl
-
-
Method Details
-
getAlgorithm
Returns the algorithm applied to the cipher data.- Specified by:
getAlgorithmin interfaceEncryptionMethod- Returns:
- the encryption algorithm.
-
getKeySize
public int getKeySize()Returns the key size of the key of the algorithm applied to the cipher data.- Specified by:
getKeySizein interfaceEncryptionMethod- Returns:
- the key size.
-
setKeySize
public void setKeySize(int size) Sets the size of the key of the algorithm applied to the cipher data.- Specified by:
setKeySizein interfaceEncryptionMethod- Parameters:
size- the key size.
-
getOAEPparams
public byte[] getOAEPparams()Returns the OAEP parameters of the algorithm applied applied to the cipher data.- Specified by:
getOAEPparamsin interfaceEncryptionMethod- Returns:
- the OAEP parameters.
-
setOAEPparams
public void setOAEPparams(byte[] params) Sets the OAEP parameters.- Specified by:
setOAEPparamsin interfaceEncryptionMethod- Parameters:
params- the OAEP parameters.
-
setDigestAlgorithm
Set the Digest Algorithm to use- Specified by:
setDigestAlgorithmin interfaceEncryptionMethod- Parameters:
digestAlgorithm- the Digest Algorithm to use
-
getDigestAlgorithm
Get the Digest Algorithm to use- Specified by:
getDigestAlgorithmin interfaceEncryptionMethod- Returns:
- the Digest Algorithm to use
-
setMGFAlgorithm
Set the MGF Algorithm to use- Specified by:
setMGFAlgorithmin interfaceEncryptionMethod- Parameters:
mgfAlgorithm- the MGF Algorithm to use
-
getMGFAlgorithm
Get the MGF Algorithm to use- Specified by:
getMGFAlgorithmin interfaceEncryptionMethod- Returns:
- the MGF Algorithm to use
-
getEncryptionMethodInformation
Returns an iterator over all the additional elements contained in theEncryptionMethod.- Specified by:
getEncryptionMethodInformationin interfaceEncryptionMethod- Returns:
- an
Iteratorover all the additional information about theEncryptionMethod.
-
addEncryptionMethodInformation
Adds encryption method information.- Specified by:
addEncryptionMethodInformationin interfaceEncryptionMethod- Parameters:
info- additional encryption method information.
-
removeEncryptionMethodInformation
Removes encryption method information.- Specified by:
removeEncryptionMethodInformationin interfaceEncryptionMethod- Parameters:
info- the information to remove from theEncryptionMethod.
-
toElement
Element toElement()
-