Class EncryptedAttributeImpl

  • All Implemented Interfaces:
    EncryptedAttribute, EncryptedElement

    public class EncryptedAttributeImpl
    extends Object
    implements EncryptedAttribute
    This is an implementation of interface EncryptedAttribute. The EncryptedAttribute element represents a SAML attribute in encrypted fashion. It's of type EncryptedElementType.

     <element name="EncryptedAttribute"
     type="{urn:oasis:names:tc:SAML:2.0:assertion}EncryptedElementType"/>
     
    • Constructor Detail

      • EncryptedAttributeImpl

        public EncryptedAttributeImpl​(Element element)
                               throws SAML2Exception
        Class constructor with EncryptedAttribute in Element format.
        Throws:
        SAML2Exception
      • EncryptedAttributeImpl

        public EncryptedAttributeImpl​(String xmlString)
                               throws SAML2Exception
        Class constructor with EncryptedAttribute in xml string format.
        Throws:
        SAML2Exception
    • 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.