Class AbstractSignableSAMLObject

  • All Implemented Interfaces:
    org.opensaml.core.xml.XMLObject, SAMLObject, SignableSAMLObject, org.opensaml.xmlsec.signature.SignableXMLObject

    public abstract class AbstractSignableSAMLObject
    extends org.opensaml.xmlsec.signature.AbstractSignableXMLObject
    implements SignableSAMLObject
    Abstract SAMLObject implementation that also implements SignableXMLObject.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)
      int hashCode()
      void setSignature​(org.opensaml.xmlsec.signature.Signature newSignature)
      When a signature is added, a default content reference that uses the ID of this object will be created and added to the signature at the time of signing.
      • Methods inherited from class org.opensaml.xmlsec.signature.AbstractSignableXMLObject

        getSignature, isSigned
      • 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.xmlsec.signature.SignableXMLObject

        getSignature, isSigned
      • Methods inherited from interface org.opensaml.core.xml.XMLObject

        detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
    • Constructor Detail

      • AbstractSignableSAMLObject

        protected AbstractSignableSAMLObject​(@Nullable
                                             String namespaceURI,
                                             @Nonnull @NotEmpty
                                             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 Detail

      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • setSignature

        public void setSignature​(@Nullable
                                 org.opensaml.xmlsec.signature.Signature newSignature)
        When a signature is added, a default content reference that uses the ID of this object will be created and added to the signature at the time of signing. See SAMLObjectContentReference for the default digest algorithm and transforms that will be used. These default values may be changed prior to marshalling this object.
        Specified by:
        setSignature in interface org.opensaml.xmlsec.signature.SignableXMLObject
        Overrides:
        setSignature in class org.opensaml.xmlsec.signature.AbstractSignableXMLObject