Class XMLCipher.Factory.EncryptionPropertyImpl
- java.lang.Object
-
- org.apache.xml.security.encryption.XMLCipher.Factory.EncryptionPropertyImpl
-
- All Implemented Interfaces:
EncryptionProperty
- Enclosing class:
- XMLCipher.Factory
private class XMLCipher.Factory.EncryptionPropertyImpl extends java.lang.Object implements EncryptionProperty
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.lang.String>
attributeMap
private java.util.List<org.w3c.dom.Element>
encryptionInformation
private java.lang.String
id
private java.lang.String
target
-
Constructor Summary
Constructors Constructor Description EncryptionPropertyImpl()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEncryptionInformation(org.w3c.dom.Element info)
Adds encryption information.java.lang.String
getAttribute(java.lang.String attribute)
Returns the attribute's value in thexml
namespace.java.util.Iterator<org.w3c.dom.Element>
getEncryptionInformation()
Returns the properties of theEncryptionProperty
.java.lang.String
getId()
Returns the id of theEncryptionProperty
.java.lang.String
getTarget()
Returns theEncryptedType
being described.void
removeEncryptionInformation(org.w3c.dom.Element info)
Removes encryption information.void
setAttribute(java.lang.String attribute, java.lang.String value)
Set the attribute value.void
setId(java.lang.String id)
Sets the id.void
setTarget(java.lang.String target)
Sets the target.(package private) org.w3c.dom.Element
toElement()
-
-
-
Method Detail
-
getTarget
public java.lang.String getTarget()
Returns theEncryptedType
being described.- Specified by:
getTarget
in interfaceEncryptionProperty
- Returns:
- the
EncryptedType
being described by thisEncryptionProperty
.
-
setTarget
public void setTarget(java.lang.String target)
Sets the target.- Specified by:
setTarget
in interfaceEncryptionProperty
-
getId
public java.lang.String getId()
Returns the id of theEncryptionProperty
.- Specified by:
getId
in interfaceEncryptionProperty
- Returns:
- the id.
-
setId
public void setId(java.lang.String id)
Sets the id.- Specified by:
setId
in interfaceEncryptionProperty
-
getAttribute
public java.lang.String getAttribute(java.lang.String attribute)
Returns the attribute's value in thexml
namespace.- Specified by:
getAttribute
in interfaceEncryptionProperty
- Returns:
- the attribute's value.
-
setAttribute
public void setAttribute(java.lang.String attribute, java.lang.String value)
Set the attribute value.- Specified by:
setAttribute
in interfaceEncryptionProperty
- Parameters:
attribute
- the attribute's name.value
- the attribute's value.
-
getEncryptionInformation
public java.util.Iterator<org.w3c.dom.Element> getEncryptionInformation()
Returns the properties of theEncryptionProperty
.- Specified by:
getEncryptionInformation
in interfaceEncryptionProperty
- Returns:
- an
Iterator
over all the additional encryption information contained in this class.
-
addEncryptionInformation
public void addEncryptionInformation(org.w3c.dom.Element info)
Adds encryption information.- Specified by:
addEncryptionInformation
in interfaceEncryptionProperty
- Parameters:
info
- the additional encryption information.
-
removeEncryptionInformation
public void removeEncryptionInformation(org.w3c.dom.Element info)
Removes encryption information.- Specified by:
removeEncryptionInformation
in interfaceEncryptionProperty
- Parameters:
info
- the information to remove.
-
toElement
org.w3c.dom.Element toElement()
-
-