Class AbstractSignableSAMLObject

All Implemented Interfaces:
XMLObject, SAMLObject, SignableSAMLObject, SignableXMLObject
Direct Known Subclasses:
AffiliationDescriptorImpl, AssertionImpl, AssertionImpl, EntitiesDescriptorImpl, EntityDescriptorImpl, RequestAbstractTypeImpl, RequestAbstractTypeImpl, ResponseAbstractTypeImpl, RoleDescriptorImpl, StatusResponseTypeImpl

public abstract class AbstractSignableSAMLObject extends AbstractSignableXMLObject implements SignableSAMLObject
Abstract SAMLObject implementation that also implements SignableXMLObject.
  • Constructor Details

    • 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 Details

    • 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 Signature newSignature)
      Sets the Signature XMLObject. 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 SignableXMLObject
      Overrides:
      setSignature in class AbstractSignableXMLObject
      Parameters:
      newSignature - the Signature XMLObject