Class XMLCipher.Factory
- java.lang.Object
-
- org.apache.xml.security.encryption.XMLCipher.Factory
-
- Enclosing class:
- XMLCipher
private class XMLCipher.Factory extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
XMLCipher.Factory.AgreementMethodImpl
private class
XMLCipher.Factory.CipherDataImpl
private class
XMLCipher.Factory.CipherReferenceImpl
private class
XMLCipher.Factory.CipherValueImpl
private class
XMLCipher.Factory.EncryptedDataImpl
private class
XMLCipher.Factory.EncryptedKeyImpl
private class
XMLCipher.Factory.EncryptedTypeImpl
private class
XMLCipher.Factory.EncryptionMethodImpl
private class
XMLCipher.Factory.EncryptionPropertiesImpl
private class
XMLCipher.Factory.EncryptionPropertyImpl
private class
XMLCipher.Factory.ReferenceListImpl
private class
XMLCipher.Factory.TransformsImpl
-
Constructor Summary
Constructors Modifier Constructor Description private
Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) AgreementMethod
newAgreementMethod(java.lang.String algorithm)
(package private) CipherData
newCipherData(int type)
(package private) CipherData
newCipherData(org.w3c.dom.Element element)
(package private) CipherReference
newCipherReference(java.lang.String uri)
(package private) CipherReference
newCipherReference(org.w3c.dom.Element element)
(package private) CipherValue
newCipherValue(java.lang.String value)
(package private) CipherValue
newCipherValue(org.w3c.dom.Element element)
(package private) EncryptedData
newEncryptedData(CipherData data)
(package private) EncryptedData
newEncryptedData(org.w3c.dom.Element element)
(package private) EncryptedKey
newEncryptedKey(CipherData data)
(package private) EncryptedKey
newEncryptedKey(org.w3c.dom.Element element)
(package private) EncryptionMethod
newEncryptionMethod(java.lang.String algorithm)
(package private) EncryptionMethod
newEncryptionMethod(org.w3c.dom.Element element)
(package private) EncryptionProperties
newEncryptionProperties()
(package private) EncryptionProperties
newEncryptionProperties(org.w3c.dom.Element element)
(package private) EncryptionProperty
newEncryptionProperty()
(package private) EncryptionProperty
newEncryptionProperty(org.w3c.dom.Element element)
(package private) KeyInfo
newKeyInfo(org.w3c.dom.Element element)
(package private) ReferenceList
newReferenceList(int type)
(package private) ReferenceList
newReferenceList(org.w3c.dom.Element element)
(package private) Transforms
newTransforms()
(package private) Transforms
newTransforms(org.w3c.dom.Document doc)
(package private) org.w3c.dom.Element
toElement(EncryptedData encryptedData)
(package private) org.w3c.dom.Element
toElement(EncryptedKey encryptedKey)
(package private) org.w3c.dom.Element
toElement(ReferenceList referenceList)
-
-
-
Method Detail
-
newAgreementMethod
AgreementMethod newAgreementMethod(java.lang.String algorithm)
- Parameters:
algorithm
-- Returns:
- a new AgreementMethod
-
newCipherData
CipherData newCipherData(int type)
- Parameters:
type
-- Returns:
- a new CipherData
-
newCipherReference
CipherReference newCipherReference(java.lang.String uri)
- Parameters:
uri
-- Returns:
- a new CipherReference
-
newCipherValue
CipherValue newCipherValue(java.lang.String value)
- Parameters:
value
-- Returns:
- a new CipherValue
-
newEncryptedData
EncryptedData newEncryptedData(CipherData data)
- Parameters:
data
-- Returns:
- a new EncryptedData
-
newEncryptedKey
EncryptedKey newEncryptedKey(CipherData data)
- Parameters:
data
-- Returns:
- a new EncryptedKey
-
newEncryptionMethod
EncryptionMethod newEncryptionMethod(java.lang.String algorithm)
- Parameters:
algorithm
-- Returns:
- a new EncryptionMethod
-
newEncryptionProperties
EncryptionProperties newEncryptionProperties()
- Returns:
- a new EncryptionProperties
-
newEncryptionProperty
EncryptionProperty newEncryptionProperty()
- Returns:
- a new EncryptionProperty
-
newReferenceList
ReferenceList newReferenceList(int type)
- Parameters:
type
- ReferenceList.DATA_REFERENCE or ReferenceList.KEY_REFERENCE- Returns:
- a new ReferenceList
-
newTransforms
Transforms newTransforms()
- Returns:
- a new Transforms
-
newTransforms
Transforms newTransforms(org.w3c.dom.Document doc)
- Parameters:
doc
-- Returns:
- a new Transforms
-
newCipherData
CipherData newCipherData(org.w3c.dom.Element element) throws XMLEncryptionException
- Parameters:
element
-- Returns:
- a new CipherData
- Throws:
XMLEncryptionException
-
newCipherReference
CipherReference newCipherReference(org.w3c.dom.Element element) throws XMLEncryptionException
- Parameters:
element
-- Returns:
- a new CipherReference
- Throws:
XMLEncryptionException
-
newCipherValue
CipherValue newCipherValue(org.w3c.dom.Element element)
- Parameters:
element
-- Returns:
- a new CipherValue
-
newEncryptedData
EncryptedData newEncryptedData(org.w3c.dom.Element element) throws XMLEncryptionException
- Parameters:
element
-- Returns:
- a new EncryptedData
- Throws:
XMLEncryptionException
-
newEncryptedKey
EncryptedKey newEncryptedKey(org.w3c.dom.Element element) throws XMLEncryptionException
- Parameters:
element
-- Returns:
- a new EncryptedKey
- Throws:
XMLEncryptionException
-
newKeyInfo
KeyInfo newKeyInfo(org.w3c.dom.Element element) throws XMLEncryptionException
- Parameters:
element
-- Returns:
- a new KeyInfo
- Throws:
XMLEncryptionException
-
newEncryptionMethod
EncryptionMethod newEncryptionMethod(org.w3c.dom.Element element)
- Parameters:
element
-- Returns:
- a new EncryptionMethod
-
newEncryptionProperties
EncryptionProperties newEncryptionProperties(org.w3c.dom.Element element)
- Parameters:
element
-- Returns:
- a new EncryptionProperties
-
newEncryptionProperty
EncryptionProperty newEncryptionProperty(org.w3c.dom.Element element)
- Parameters:
element
-- Returns:
- a new EncryptionProperty
-
newReferenceList
ReferenceList newReferenceList(org.w3c.dom.Element element)
- Parameters:
element
-- Returns:
- a new ReferenceList
-
toElement
org.w3c.dom.Element toElement(EncryptedData encryptedData)
- Parameters:
encryptedData
-- Returns:
- the XML Element form of that EncryptedData
-
toElement
org.w3c.dom.Element toElement(EncryptedKey encryptedKey)
- Parameters:
encryptedKey
-- Returns:
- the XML Element form of that EncryptedKey
-
toElement
org.w3c.dom.Element toElement(ReferenceList referenceList)
- Parameters:
referenceList
-- Returns:
- the XML Element form of that ReferenceList
-
-