Class JcaTlsDSSVerifier

  • All Implemented Interfaces:
    TlsVerifier
    Direct Known Subclasses:
    JcaTlsDSAVerifier, JcaTlsECDSAVerifier

    public abstract class JcaTlsDSSVerifier
    extends java.lang.Object
    implements TlsVerifier
    JCA base class for the verifiers implementing the two DSA style algorithms from FIPS PUB 186-4: DSA and ECDSA.
    • Field Detail

      • publicKey

        protected final java.security.PublicKey publicKey
      • algorithmType

        protected final short algorithmType
      • algorithmName

        protected final java.lang.String algorithmName
    • Constructor Detail

      • JcaTlsDSSVerifier

        protected JcaTlsDSSVerifier​(JcaTlsCrypto crypto,
                                    java.security.PublicKey publicKey,
                                    short algorithmType,
                                    java.lang.String algorithmName)
    • Method Detail

      • verifyRawSignature

        public boolean verifyRawSignature​(DigitallySigned digitallySigned,
                                          byte[] hash)
        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:
        digitallySigned - the signature object containing the signature to be verified.
        hash - the hash calculated for the signature.
        Returns:
        true if signature verifies, false otherwise.