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:
org.opensaml.core.xml.AttributeExtensibleXMLObject,org.opensaml.core.xml.ElementExtensibleXMLObject,org.opensaml.core.xml.XMLObject,org.opensaml.xmlsec.signature.SignableXMLObject
public class SignableSimpleXMLObject extends org.opensaml.xmlsec.signature.AbstractSignableXMLObject implements org.opensaml.core.xml.ElementExtensibleXMLObject, org.opensaml.core.xml.AttributeExtensibleXMLObjectSimple XMLObject that can be used for testing
-
-
Field Summary
Fields Modifier and Type Field Description static QNameELEMENT_NAMEDefault element namestatic StringENCRYPTED_NAMELocal name of encrypted elementprivate org.opensaml.xmlsec.encryption.EncryptedDataencryptedDataEncryptedData childprivate StringidName attributestatic StringID_ATTRIB_NAMEName attribute namestatic StringLOCAL_NAMEElement local namestatic StringNAMESPACEDefault namespacestatic StringNAMESPACE_PREFIXDefault namespace prefixprivate org.opensaml.core.xml.util.XMLObjectChildrenList<SignableSimpleXMLObject>simpleXMLObjectsChild SimpleXMLObjectsprivate org.opensaml.core.xml.util.AttributeMapunknownAttributesanyAttribute wildcard attributes.private org.opensaml.core.xml.util.IndexedXMLObjectChildrenList<org.opensaml.core.xml.XMLObject>unknownXMLObjectsOther childrenprivate StringvalueValue of the object stored as text content in the element
-
Constructor Summary
Constructors Constructor Description SignableSimpleXMLObject(String namspaceURI, String localName, String namespacePrefix)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opensaml.xmlsec.encryption.EncryptedDatagetEncryptedData()Get the EncryptedData child element.StringgetId()Gets the name attribute.List<org.opensaml.core.xml.XMLObject>getOrderedChildren()List<SignableSimpleXMLObject>getSimpleXMLObjects()Gets the list of child SimpleXMLObjects.org.opensaml.core.xml.util.AttributeMapgetUnknownAttributes()List<org.opensaml.core.xml.XMLObject>getUnknownXMLObjects()List<org.opensaml.core.xml.XMLObject>getUnknownXMLObjects(QName typeOrName)StringgetValue()Gets the value of this object.voidsetEncryptedData(org.opensaml.xmlsec.encryption.EncryptedData newEncryptedData)Set the EncryptedData child element.voidsetId(String newId)Sets the name attribute.voidsetValue(String newValue)Sets the value of this object.-
Methods inherited from class org.opensaml.xmlsec.signature.AbstractSignableXMLObject
getSignature, isSigned, setSignature
-
Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, 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, setSchemaType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, 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 Detail
-
NAMESPACE
public static final String NAMESPACE
Default namespace- See Also:
- Constant Field Values
-
NAMESPACE_PREFIX
public static final String NAMESPACE_PREFIX
Default namespace prefix- See Also:
- Constant Field Values
-
LOCAL_NAME
public static final String LOCAL_NAME
Element local name- See Also:
- Constant Field Values
-
ELEMENT_NAME
public static final QName ELEMENT_NAME
Default element name
-
ENCRYPTED_NAME
public static final String ENCRYPTED_NAME
Local name of encrypted element- See Also:
- Constant Field Values
-
ID_ATTRIB_NAME
public static final String ID_ATTRIB_NAME
Name attribute name- See Also:
- Constant Field Values
-
id
private String id
Name attribute
-
value
private String value
Value of the object stored as text content in the element
-
simpleXMLObjects
private org.opensaml.core.xml.util.XMLObjectChildrenList<SignableSimpleXMLObject> simpleXMLObjects
Child SimpleXMLObjects
-
unknownXMLObjects
private org.opensaml.core.xml.util.IndexedXMLObjectChildrenList<org.opensaml.core.xml.XMLObject> unknownXMLObjects
Other children
-
encryptedData
private org.opensaml.xmlsec.encryption.EncryptedData encryptedData
EncryptedData child
-
unknownAttributes
private org.opensaml.core.xml.util.AttributeMap unknownAttributes
anyAttribute wildcard attributes.
-
-
Method Detail
-
getId
public String getId()
Gets the name attribute.- Returns:
- the name attribute
-
setId
public void setId(String newId)
Sets the name attribute.- Parameters:
newId- the name attribute
-
getValue
public String getValue()
Gets the value of this object.- Returns:
- the value of this object
-
setValue
public void setValue(String newValue)
Sets the value of this object.- Parameters:
newValue- the value of this object
-
getEncryptedData
public org.opensaml.xmlsec.encryption.EncryptedData getEncryptedData()
Get the EncryptedData child element.- Returns:
- the EncryptedData child element
-
setEncryptedData
public void setEncryptedData(org.opensaml.xmlsec.encryption.EncryptedData newEncryptedData)
Set the EncryptedData child element.- Parameters:
newEncryptedData- the new EncryptedData child element
-
getSimpleXMLObjects
public List<SignableSimpleXMLObject> getSimpleXMLObjects()
Gets the list of child SimpleXMLObjects.- Returns:
- the list of child SimpleXMLObjects
-
getUnknownXMLObjects
public List<org.opensaml.core.xml.XMLObject> getUnknownXMLObjects()
- Specified by:
getUnknownXMLObjectsin interfaceorg.opensaml.core.xml.ElementExtensibleXMLObject
-
getUnknownXMLObjects
public List<org.opensaml.core.xml.XMLObject> getUnknownXMLObjects(QName typeOrName)
- Specified by:
getUnknownXMLObjectsin interfaceorg.opensaml.core.xml.ElementExtensibleXMLObject
-
getOrderedChildren
public List<org.opensaml.core.xml.XMLObject> getOrderedChildren()
- Specified by:
getOrderedChildrenin interfaceorg.opensaml.core.xml.XMLObject
-
getUnknownAttributes
public org.opensaml.core.xml.util.AttributeMap getUnknownAttributes()
- Specified by:
getUnknownAttributesin interfaceorg.opensaml.core.xml.AttributeExtensibleXMLObject
-
-