FileDocCategorySizeDatePackage
EncryptionMethod.javaAPI DocJava SE 6 API3049Tue Jun 10 00:23:00 BST 2008com.sun.org.apache.xml.internal.security.encryption

EncryptionMethod

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:

<complexType name='EncryptionMethodType' mixed='true'> <sequence> <element name='KeySize' minOccurs='0' type='xenc:KeySizeType'/> <element name='OAEPparams' minOccurs='0' type='base64Binary'/> <any namespace='##other' minOccurs='0' maxOccurs='unbounded'/> </sequence> <attribute name='Algorithm' type='anyURI' use='required'/> </complexType>
author
Axl Mattheus

Fields Summary
Constructors Summary
Methods Summary
public voidaddEncryptionMethodInformation(org.w3c.dom.Element information)
Adds encryption method information.

param
information additional encryption method information.

public java.lang.StringgetAlgorithm()
Returns the algorithm applied to the cipher data.

return
the encryption algorithm.

public java.util.IteratorgetEncryptionMethodInformation()
Returns an iterator over all the additional elements contained in the EncryptionMethod.

return
an Iterator over all the additional infomation about the EncryptionMethod.

public intgetKeySize()
Returns the key size of the key of the algorithm applied to the cipher data.

return
the key size.

public byte[]getOAEPparams()
Returns the OAEP parameters of the algorithm applied applied to the cipher data.

return
the OAEP parameters.

public voidremoveEncryptionMethodInformation(org.w3c.dom.Element information)
Removes encryption method information.

param
information the information to remove from the EncryptionMethod.

public voidsetKeySize(int size)
Sets the size of the key of the algorithm applied to the cipher data.

param
size the key size.

public voidsetOAEPparams(byte[] parameters)
Sets the OAEP parameters.

param
parameters the OAEP parameters.