Class SAML2Signature


  • public class SAML2Signature
    extends Object
    Class that deals with SAML2 Signature
    Since:
    May 26, 2009
    Author:
    Anil.Saldhana@redhat.com, alessio.soldano@jboss.com
    • Constructor Detail

      • SAML2Signature

        public SAML2Signature()
    • Method Detail

      • getSignatureMethod

        public String getSignatureMethod()
      • setSignatureMethod

        public void setSignatureMethod​(String signatureMethod)
      • getDigestMethod

        public String getDigestMethod()
      • setDigestMethod

        public void setDigestMethod​(String digestMethod)
      • setNextSibling

        public void setNextSibling​(Node sibling)
      • setSignatureIncludeKeyInfo

        public void setSignatureIncludeKeyInfo​(boolean val)
        Set to false, if you do not want to include keyinfo in the signature
        Parameters:
        val -
        Since:
        v2.0.1
      • setX509Certificate

        public void setX509Certificate​(X509Certificate x509Certificate)
        Set the X509Certificate if you desire to have the SignedInfo have X509 Data This method needs to be called before any of the sign methods.
        Parameters:
        x509Certificate -
        Since:
        v2.5.0
      • getNextSiblingOfIssuer

        public Node getNextSiblingOfIssuer​(Document doc)
        Given a Document, find the Node which is the sibling of the Issuer element
        Parameters:
        doc -
        Returns:
      • configureIdAttribute

        public static void configureIdAttribute​(Document document)

        Sets the IDness of the ID attribute. Santuario 1.5.1 does not assumes IDness based on attribute names anymore. This method should be called before signing/validating a saml document.

        Parameters:
        document - SAML document to have its ID attribute configured.
      • configureIdAttribute

        public static void configureIdAttribute​(Element element)