Class DOMSignatureMethod.AbstractRSASignatureMethod

    • Constructor Detail

      • AbstractRSASignatureMethod

        AbstractRSASignatureMethod​(java.security.spec.AlgorithmParameterSpec params)
                            throws java.security.InvalidAlgorithmParameterException
        Throws:
        java.security.InvalidAlgorithmParameterException
      • AbstractRSASignatureMethod

        AbstractRSASignatureMethod​(org.w3c.dom.Element dmElem)
                            throws javax.xml.crypto.MarshalException
        Throws:
        javax.xml.crypto.MarshalException
    • Method Detail

      • postSignFormat

        byte[] postSignFormat​(java.security.Key key,
                              byte[] sig)
        Returns sig. No extra formatting is necessary for RSA.
        Specified by:
        postSignFormat in class DOMSignatureMethod
        Parameters:
        key - the key used to sign
        sig - the signature returned by Signature.sign()
        Returns:
        the formatted signature
      • preVerifyFormat

        byte[] preVerifyFormat​(java.security.Key key,
                               byte[] sig)
        Returns sig. No extra formatting is necessary for RSA.
        Specified by:
        preVerifyFormat in class DOMSignatureMethod
        Parameters:
        key - the key used to sign
        sig - the signature
        Returns:
        the formatted signature