Class JcaTlsRSAVerifier

  • All Implemented Interfaces:
    TlsVerifier

    public class JcaTlsRSAVerifier
    extends java.lang.Object
    implements TlsVerifier
    Operator supporting the verification of RSASSA-PKCS1-v1_5 signatures.
    • Constructor Detail

      • JcaTlsRSAVerifier

        public JcaTlsRSAVerifier​(JcaTlsCrypto crypto,
                                 java.security.PublicKey publicKey)
    • Method Detail

      • verifyRawSignature

        public boolean verifyRawSignature​(DigitallySigned signedParams,
                                          byte[] hash)
                                   throws java.io.IOException
        Description copied from interface: TlsVerifier
        Return true if the passed in signature and hash represent a real signature.
        Specified by:
        verifyRawSignature in interface TlsVerifier
        Parameters:
        signedParams - the signature object containing the signature to be verified.
        hash - the hash calculated for the signature.
        Returns:
        true if signature verifies, false otherwise.
        Throws:
        java.io.IOException - in case of an exception verifying signature.
      • getRawVerifier

        protected java.security.Signature getRawVerifier()
                                                  throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • isSunMSCAPIRawVerifier

        protected boolean isSunMSCAPIRawVerifier()
                                          throws java.io.IOException
        Throws:
        java.io.IOException