Class AbstractSignableXMLObject

java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.xmlsec.signature.AbstractSignableXMLObject
All Implemented Interfaces:
XMLObject, SignableXMLObject
Direct Known Subclasses:
AbstractSignableSAMLObject

public abstract class AbstractSignableXMLObject extends AbstractXMLObject implements SignableXMLObject
Base for signable XMLObjects.
  • Field Details

    • signature

      private Signature signature
      Signature child.
  • Constructor Details

    • AbstractSignableXMLObject

      protected AbstractSignableXMLObject(@Nullable String namespaceURI, @Nonnull String elementLocalName, @Nullable String namespacePrefix)
      Constructor.
      Parameters:
      namespaceURI - the namespace the element is in
      elementLocalName - the local name of the XML element this Object represents
      namespacePrefix - the prefix for the given namespace
  • Method Details

    • isSigned

      public boolean isSigned()
      Checks to see if the element has been signed.
      Specified by:
      isSigned in interface SignableXMLObject
      Returns:
      true iff this element is signed
    • getSignature

      @Nullable public Signature getSignature()
      Gets the Signature XMLObject.
      Specified by:
      getSignature in interface SignableXMLObject
      Returns:
      the Signature XMLObject
    • setSignature

      public void setSignature(@Nullable Signature newSignature)
      Sets the Signature XMLObject.
      Specified by:
      setSignature in interface SignableXMLObject
      Parameters:
      newSignature - the Signature XMLObject