Class 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.AttributeExtensibleXMLObject
    Simple XMLObject that can be used for testing
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.opensaml.xmlsec.encryption.EncryptedData getEncryptedData()
      Get the EncryptedData child element.
      String getId()
      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.AttributeMap getUnknownAttributes()
      List<org.opensaml.core.xml.XMLObject> getUnknownXMLObjects()
      List<org.opensaml.core.xml.XMLObject> getUnknownXMLObjects​(QName typeOrName)
      String getValue()
      Gets the value of this object.
      void setEncryptedData​(org.opensaml.xmlsec.encryption.EncryptedData newEncryptedData)
      Set the EncryptedData child element.
      void setId​(String newId)
      Sets the name attribute.
      void setValue​(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 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

      • ELEMENT_NAME

        public static final QName ELEMENT_NAME
        Default element name
      • 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.
    • Constructor Detail

      • SignableSimpleXMLObject

        public SignableSimpleXMLObject​(String namspaceURI,
                                       String localName,
                                       String namespacePrefix)
        Constructor
        Parameters:
        namspaceURI - ...
        localName - ...
        namespacePrefix - ...
    • 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:
        getUnknownXMLObjects in interface org.opensaml.core.xml.ElementExtensibleXMLObject
      • getUnknownXMLObjects

        public List<org.opensaml.core.xml.XMLObject> getUnknownXMLObjects​(QName typeOrName)
        Specified by:
        getUnknownXMLObjects in interface org.opensaml.core.xml.ElementExtensibleXMLObject
      • getOrderedChildren

        public List<org.opensaml.core.xml.XMLObject> getOrderedChildren()
        Specified by:
        getOrderedChildren in interface org.opensaml.core.xml.XMLObject
      • getUnknownAttributes

        public org.opensaml.core.xml.util.AttributeMap getUnknownAttributes()
        Specified by:
        getUnknownAttributes in interface org.opensaml.core.xml.AttributeExtensibleXMLObject