Class EncryptedElementImpl

  • All Implemented Interfaces:
    EncryptedElement
    Direct Known Subclasses:
    EncryptedAssertionImpl, EncryptedIDImpl, NewEncryptedIDImpl

    public abstract class EncryptedElementImpl
    extends Object
    implements EncryptedElement
    Java content class for EncryptedElementType complex type.

    The following schema fragment specifies the expected content contained within this java content object.

     <complexType name="EncryptedElementType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element ref="{http://www.w3.org/2001/04/xmlenc#}EncryptedData"/>
             <element ref="{http://www.w3.org/2001/04/xmlenc#}EncryptedKey"
             maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
         </restriction>
       </complexContent>
     </complexType>
     
    • Field Detail

      • xmlString

        protected String xmlString
    • Constructor Detail

      • EncryptedElementImpl

        public EncryptedElementImpl()
    • Method Detail

      • toXMLString

        public String toXMLString()
                           throws SAML2Exception
        Returns a String representation of the element.
        Specified by:
        toXMLString in interface EncryptedElement
        Returns:
        A string containing the valid XML for this element. By default name space name is prepended to the element name.
        Throws:
        SAML2Exception - if the object does not conform to the schema.
      • toXMLString

        public String toXMLString​(boolean includeNS,
                                  boolean declareNS)
                           throws SAML2Exception
        Returns a String representation of the element.
        Specified by:
        toXMLString in interface EncryptedElement
        Parameters:
        includeNS - Determines whether or not the namespace qualifier is prepended to the Element when converted
        declareNS - Determines whether or not the namespace is declared within the Element.
        Returns:
        A string containing the valid XML for this element
        Throws:
        SAML2Exception - if the object does not conform to the schema.