Module org.apache.santuario.xmlsec
Interface EncryptionProperty
-
public interface EncryptionPropertyAdditional information items concerning the generation of theEncryptedDataorEncryptedKeycan be placed in anEncryptionPropertyelement (e.g., date/time stamp or the serial number of cryptographic hardware used during encryption). The Target attribute identifies theEncryptedTypestructure being described. anyAttribute permits the inclusion of attributes from the XML namespace to be included (i.e.,xml:space,xml:lang, andxml:base).It is defined as follows:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddEncryptionInformation(Element information)Adds encryption information.StringgetAttribute(String attribute)Returns the attribute's value in thexmlnamespace.Iterator<Element>getEncryptionInformation()Returns the properties of theEncryptionProperty.StringgetId()Returns the id of theEncryptionProperty.StringgetTarget()Returns theEncryptedTypebeing described.voidremoveEncryptionInformation(Element information)Removes encryption information.voidsetAttribute(String attribute, String value)Set the attribute value.voidsetId(String id)Sets the id.voidsetTarget(String target)Sets the target.
-
-
-
Method Detail
-
getTarget
String getTarget()
Returns theEncryptedTypebeing described.- Returns:
- the
EncryptedTypebeing described by thisEncryptionProperty.
-
setTarget
void setTarget(String target)
Sets the target.- Parameters:
target-
-
getId
String getId()
Returns the id of theEncryptionProperty.- Returns:
- the id.
-
setId
void setId(String id)
Sets the id.- Parameters:
id-
-
getAttribute
String getAttribute(String attribute)
Returns the attribute's value in thexmlnamespace.- Parameters:
attribute-- Returns:
- the attribute's value.
-
setAttribute
void setAttribute(String attribute, String value)
Set the attribute value.- Parameters:
attribute- the attribute's name.value- the attribute's value.
-
getEncryptionInformation
Iterator<Element> getEncryptionInformation()
Returns the properties of theEncryptionProperty.- Returns:
- an
Iteratorover all the additional encryption information contained in this class.
-
addEncryptionInformation
void addEncryptionInformation(Element information)
Adds encryption information.- Parameters:
information- the additional encryption information.
-
removeEncryptionInformation
void removeEncryptionInformation(Element information)
Removes encryption information.- Parameters:
information- the information to remove.
-
-