Package org.opensaml.xmlsec.mock
Class SignableSimpleXMLObject
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.xmlsec.signature.AbstractSignableXMLObject
org.opensaml.xmlsec.mock.SignableSimpleXMLObject
- All Implemented Interfaces:
AttributeExtensibleXMLObject,ElementExtensibleXMLObject,XMLObject,SignableXMLObject
public class SignableSimpleXMLObject
extends AbstractSignableXMLObject
implements ElementExtensibleXMLObject, AttributeExtensibleXMLObject
Simple XMLObject that can be used for testing
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QNameDefault element namestatic final StringLocal name of encrypted elementprivate EncryptedDataEncryptedData childprivate StringName attributestatic final StringName attribute namestatic final StringElement local namestatic final StringDefault namespacestatic final StringDefault namespace prefixChild SimpleXMLObjectsprivate AttributeMapanyAttribute wildcard attributes.private IndexedXMLObjectChildrenList<XMLObject>Other childrenprivate StringValue of the object stored as text content in the element -
Constructor Summary
ConstructorsConstructorDescriptionSignableSimpleXMLObject(String namspaceURI, String localName, String namespacePrefix) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the EncryptedData child element.getId()Gets the name attribute.Gets the list of child SimpleXMLObjects.getUnknownXMLObjects(QName typeOrName) getValue()Gets the value of this object.voidsetEncryptedData(EncryptedData newEncryptedData) Set the EncryptedData child element.voidSets the name attribute.voidSets the value of this object.Methods inherited from class org.opensaml.xmlsec.signature.AbstractSignableXMLObject
getSignature, isSigned, setSignatureMethods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensaml.core.xml.XMLObject
detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
Field Details
-
NAMESPACE
Default namespace- See Also:
-
NAMESPACE_PREFIX
Default namespace prefix- See Also:
-
LOCAL_NAME
Element local name- See Also:
-
ELEMENT_NAME
Default element name -
ENCRYPTED_NAME
Local name of encrypted element- See Also:
-
ID_ATTRIB_NAME
Name attribute name- See Also:
-
id
Name attribute -
value
Value of the object stored as text content in the element -
simpleXMLObjects
Child SimpleXMLObjects -
unknownXMLObjects
Other children -
encryptedData
EncryptedData child -
unknownAttributes
anyAttribute wildcard attributes.
-
-
Constructor Details
-
Method Details
-
getId
Gets the name attribute.- Returns:
- the name attribute
-
setId
Sets the name attribute.- Parameters:
newId- the name attribute
-
getValue
Gets the value of this object.- Returns:
- the value of this object
-
setValue
Sets the value of this object.- Parameters:
newValue- the value of this object
-
getEncryptedData
Get the EncryptedData child element.- Returns:
- the EncryptedData child element
-
setEncryptedData
Set the EncryptedData child element.- Parameters:
newEncryptedData- the new EncryptedData child element
-
getSimpleXMLObjects
Gets the list of child SimpleXMLObjects.- Returns:
- the list of child SimpleXMLObjects
-
getUnknownXMLObjects
- Specified by:
getUnknownXMLObjectsin interfaceElementExtensibleXMLObject
-
getUnknownXMLObjects
- Specified by:
getUnknownXMLObjectsin interfaceElementExtensibleXMLObject
-
getOrderedChildren
- Specified by:
getOrderedChildrenin interfaceXMLObject
-
getUnknownAttributes
- Specified by:
getUnknownAttributesin interfaceAttributeExtensibleXMLObject
-