/** * Indicates whether the given {@code signature} can be verified using the * public key or a certificate of the signer. * <p> * This {@code Signature} instance is reset to the state of its last * initialization for verifying and thus can be used to verify another * signature of the same signer. * * @param signature * the signature to verify. * @return {@code true} if the signature was verified, {@code false} * otherwise. * @throws SignatureException * if this {@code Signature} instance is not initialized * properly. */ public final boolean verify(byte[] signature) throws SignatureException { if (state != VERIFY) { throw new SignatureException("Signature object is not initialized properly"); } return engineVerify(signature); }
throw new IllegalArgumentException(); return engineVerify(signature, offset, length);
/** * Indicates whether the given {@code signature} can be verified using the * public key or a certificate of the signer. * <p> * This {@code Signature} instance is reset to the state of its last * initialization for verifying and thus can be used to verify another * signature of the same signer. * * @param signature * the signature to verify. * @return {@code true} if the signature was verified, {@code false} * otherwise. * @throws SignatureException * if this {@code Signature} instance is not initialized * properly. */ public final boolean verify(byte[] signature) throws SignatureException { if (state != VERIFY) { throw new SignatureException("Signature object is not initialized properly"); } return engineVerify(signature); }
/** * Indicates whether the given {@code signature} can be verified using the * public key or a certificate of the signer. * <p> * This {@code Signature} instance is reset to the state of its last * initialization for verifying and thus can be used to verify another * signature of the same signer. * * @param signature * the signature to verify. * @return {@code true} if the signature was verified, {@code false} * otherwise. * @throws SignatureException * if this {@code Signature} instance is not initialized * properly. */ public final boolean verify(byte[] signature) throws SignatureException { if (state != VERIFY) { throw new SignatureException("Signature object is not initialized properly"); } return engineVerify(signature); }
/** * Indicates whether the given {@code signature} can be verified using the * public key or a certificate of the signer. * <p> * This {@code Signature} instance is reset to the state of its last * initialization for verifying and thus can be used to verify another * signature of the same signer. * * @param signature * the signature to verify. * @return {@code true} if the signature was verified, {@code false} * otherwise. * @throws SignatureException * if this {@code Signature} instance is not initialized * properly. */ public final boolean verify(byte[] signature) throws SignatureException { if (state != VERIFY) { throw new SignatureException("Signature object is not initialized properly"); } return engineVerify(signature); }
/** * Indicates whether the given {@code signature} can be verified using the * public key or a certificate of the signer. * <p> * This {@code Signature} instance is reset to the state of its last * initialization for verifying and thus can be used to verify another * signature of the same signer. * * @param signature * the signature to verify. * @return {@code true} if the signature was verified, {@code false} * otherwise. * @throws SignatureException * if this {@code Signature} instance is not initialized * properly. */ public final boolean verify(byte[] signature) throws SignatureException { if (state != VERIFY) { throw new SignatureException("Signature object is not initialized properly"); } return engineVerify(signature); }
/** * Indicates whether the given {@code signature} can be verified using the * public key or a certificate of the signer. * <p> * This {@code Signature} instance is reset to the state of its last * initialization for verifying and thus can be used to verify another * signature of the same signer. * * @param signature * the signature to verify. * @return {@code true} if the signature was verified, {@code false} * otherwise. * @throws SignatureException * if this {@code Signature} instance is not initialized * properly. */ public final boolean verify(byte[] signature) throws SignatureException { if (state != VERIFY) { throw new SignatureException("Signature object is not initialized properly"); } return engineVerify(signature); }
/** * Indicates whether the given {@code signature} can be verified using the * public key or a certificate of the signer. * <p> * This {@code Signature} instance is reset to the state of its last * initialization for verifying and thus can be used to verify another * signature of the same signer. * * @param signature * the signature to verify. * @return {@code true} if the signature was verified, {@code false} * otherwise. * @throws SignatureException * if this {@code Signature} instance is not initialized * properly. */ public final boolean verify(byte[] signature) throws SignatureException { if (state != VERIFY) { throw new SignatureException("Signature object is not initialized properly"); } return engineVerify(signature); }
throw new IllegalArgumentException(); return engineVerify(signature, offset, length);
throw new IllegalArgumentException(); return engineVerify(signature, offset, length);
throw new IllegalArgumentException(); return engineVerify(signature, offset, length);
throw new IllegalArgumentException(); return engineVerify(signature, offset, length);
throw new IllegalArgumentException(); return engineVerify(signature, offset, length);
throw new IllegalArgumentException(); return engineVerify(signature, offset, length);