Java Code Examples for sun.security.x509.X509CertImpl#verify()

The following examples show how to use sun.security.x509.X509CertImpl#verify() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: X509Certificate.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * Verifies that this certificate was signed using the
 * private key that corresponds to the specified public key.
 * This method uses the signature verification engine
 * supplied by the specified provider. Note that the specified
 * Provider object does not have to be registered in the provider list.
 *
 * This method was added to version 1.8 of the Java Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation.
 *
 * @param key the PublicKey used to carry out the verification.
 * @param sigProvider the signature provider.
 *
 * @exception NoSuchAlgorithmException on unsupported signature
 * algorithms.
 * @exception InvalidKeyException on incorrect key.
 * @exception SignatureException on signature errors.
 * @exception CertificateException on encoding errors.
 * @exception UnsupportedOperationException if the method is not supported
 * @since 1.8
 */
public void verify(PublicKey key, Provider sigProvider)
    throws CertificateException, NoSuchAlgorithmException,
    InvalidKeyException, SignatureException {
    X509CertImpl.verify(this, key, sigProvider);
}
 
Example 2
Source File: X509Certificate.java    From dragonwell8_jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Verifies that this certificate was signed using the
 * private key that corresponds to the specified public key.
 * This method uses the signature verification engine
 * supplied by the specified provider. Note that the specified
 * Provider object does not have to be registered in the provider list.
 *
 * This method was added to version 1.8 of the Java Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation.
 *
 * @param key the PublicKey used to carry out the verification.
 * @param sigProvider the signature provider.
 *
 * @exception NoSuchAlgorithmException on unsupported signature
 * algorithms.
 * @exception InvalidKeyException on incorrect key.
 * @exception SignatureException on signature errors.
 * @exception CertificateException on encoding errors.
 * @exception UnsupportedOperationException if the method is not supported
 * @since 1.8
 */
public void verify(PublicKey key, Provider sigProvider)
    throws CertificateException, NoSuchAlgorithmException,
    InvalidKeyException, SignatureException {
    X509CertImpl.verify(this, key, sigProvider);
}
 
Example 3
Source File: X509Certificate.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Verifies that this certificate was signed using the
 * private key that corresponds to the specified public key.
 * This method uses the signature verification engine
 * supplied by the specified provider. Note that the specified
 * Provider object does not have to be registered in the provider list.
 *
 * This method was added to version 1.8 of the Java Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation.
 *
 * @param key the PublicKey used to carry out the verification.
 * @param sigProvider the signature provider.
 *
 * @exception NoSuchAlgorithmException on unsupported signature
 * algorithms.
 * @exception InvalidKeyException on incorrect key.
 * @exception SignatureException on signature errors.
 * @exception CertificateException on encoding errors.
 * @exception UnsupportedOperationException if the method is not supported
 * @since 1.8
 */
public void verify(PublicKey key, Provider sigProvider)
    throws CertificateException, NoSuchAlgorithmException,
    InvalidKeyException, SignatureException {
    X509CertImpl.verify(this, key, sigProvider);
}
 
Example 4
Source File: X509Certificate.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Verifies that this certificate was signed using the
 * private key that corresponds to the specified public key.
 * This method uses the signature verification engine
 * supplied by the specified provider. Note that the specified
 * Provider object does not have to be registered in the provider list.
 *
 * This method was added to version 1.8 of the Java Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation.
 *
 * @param key the PublicKey used to carry out the verification.
 * @param sigProvider the signature provider.
 *
 * @exception NoSuchAlgorithmException on unsupported signature
 * algorithms.
 * @exception InvalidKeyException on incorrect key.
 * @exception SignatureException on signature errors.
 * @exception CertificateException on encoding errors.
 * @exception UnsupportedOperationException if the method is not supported
 * @since 1.8
 */
public void verify(PublicKey key, Provider sigProvider)
    throws CertificateException, NoSuchAlgorithmException,
    InvalidKeyException, SignatureException {
    X509CertImpl.verify(this, key, sigProvider);
}
 
Example 5
Source File: X509Certificate.java    From JDKSourceCode1.8 with MIT License 2 votes vote down vote up
/**
 * Verifies that this certificate was signed using the
 * private key that corresponds to the specified public key.
 * This method uses the signature verification engine
 * supplied by the specified provider. Note that the specified
 * Provider object does not have to be registered in the provider list.
 *
 * This method was added to version 1.8 of the Java Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation.
 *
 * @param key the PublicKey used to carry out the verification.
 * @param sigProvider the signature provider.
 *
 * @exception NoSuchAlgorithmException on unsupported signature
 * algorithms.
 * @exception InvalidKeyException on incorrect key.
 * @exception SignatureException on signature errors.
 * @exception CertificateException on encoding errors.
 * @exception UnsupportedOperationException if the method is not supported
 * @since 1.8
 */
public void verify(PublicKey key, Provider sigProvider)
    throws CertificateException, NoSuchAlgorithmException,
    InvalidKeyException, SignatureException {
    X509CertImpl.verify(this, key, sigProvider);
}
 
Example 6
Source File: X509Certificate.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Verifies that this certificate was signed using the
 * private key that corresponds to the specified public key.
 * This method uses the signature verification engine
 * supplied by the specified provider. Note that the specified
 * Provider object does not have to be registered in the provider list.
 *
 * This method was added to version 1.8 of the Java Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation.
 *
 * @param key the PublicKey used to carry out the verification.
 * @param sigProvider the signature provider.
 *
 * @exception NoSuchAlgorithmException on unsupported signature
 * algorithms.
 * @exception InvalidKeyException on incorrect key.
 * @exception SignatureException on signature errors.
 * @exception CertificateException on encoding errors.
 * @exception UnsupportedOperationException if the method is not supported
 * @since 1.8
 */
public void verify(PublicKey key, Provider sigProvider)
    throws CertificateException, NoSuchAlgorithmException,
    InvalidKeyException, SignatureException {
    X509CertImpl.verify(this, key, sigProvider);
}
 
Example 7
Source File: X509Certificate.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Verifies that this certificate was signed using the
 * private key that corresponds to the specified public key.
 * This method uses the signature verification engine
 * supplied by the specified provider. Note that the specified
 * Provider object does not have to be registered in the provider list.
 *
 * This method was added to version 1.8 of the Java Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation.
 *
 * @param key the PublicKey used to carry out the verification.
 * @param sigProvider the signature provider.
 *
 * @exception NoSuchAlgorithmException on unsupported signature
 * algorithms.
 * @exception InvalidKeyException on incorrect key.
 * @exception SignatureException on signature errors.
 * @exception CertificateException on encoding errors.
 * @exception UnsupportedOperationException if the method is not supported
 * @since 1.8
 */
public void verify(PublicKey key, Provider sigProvider)
    throws CertificateException, NoSuchAlgorithmException,
    InvalidKeyException, SignatureException {
    X509CertImpl.verify(this, key, sigProvider);
}
 
Example 8
Source File: X509Certificate.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Verifies that this certificate was signed using the
 * private key that corresponds to the specified public key.
 * This method uses the signature verification engine
 * supplied by the specified provider. Note that the specified
 * Provider object does not have to be registered in the provider list.
 *
 * This method was added to version 1.8 of the Java Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation.
 *
 * @param key the PublicKey used to carry out the verification.
 * @param sigProvider the signature provider.
 *
 * @exception NoSuchAlgorithmException on unsupported signature
 * algorithms.
 * @exception InvalidKeyException on incorrect key.
 * @exception SignatureException on signature errors.
 * @exception CertificateException on encoding errors.
 * @exception UnsupportedOperationException if the method is not supported
 * @since 1.8
 */
public void verify(PublicKey key, Provider sigProvider)
    throws CertificateException, NoSuchAlgorithmException,
    InvalidKeyException, SignatureException {
    X509CertImpl.verify(this, key, sigProvider);
}
 
Example 9
Source File: X509Certificate.java    From Java8CN with Apache License 2.0 2 votes vote down vote up
/**
 * Verifies that this certificate was signed using the
 * private key that corresponds to the specified public key.
 * This method uses the signature verification engine
 * supplied by the specified provider. Note that the specified
 * Provider object does not have to be registered in the provider list.
 *
 * This method was added to version 1.8 of the Java Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation.
 *
 * @param key the PublicKey used to carry out the verification.
 * @param sigProvider the signature provider.
 *
 * @exception NoSuchAlgorithmException on unsupported signature
 * algorithms.
 * @exception InvalidKeyException on incorrect key.
 * @exception SignatureException on signature errors.
 * @exception CertificateException on encoding errors.
 * @exception UnsupportedOperationException if the method is not supported
 * @since 1.8
 */
public void verify(PublicKey key, Provider sigProvider)
    throws CertificateException, NoSuchAlgorithmException,
    InvalidKeyException, SignatureException {
    X509CertImpl.verify(this, key, sigProvider);
}
 
Example 10
Source File: X509Certificate.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Verifies that this certificate was signed using the
 * private key that corresponds to the specified public key.
 * This method uses the signature verification engine
 * supplied by the specified provider. Note that the specified
 * Provider object does not have to be registered in the provider list.
 *
 * This method was added to version 1.8 of the Java Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation.
 *
 * @param key the PublicKey used to carry out the verification.
 * @param sigProvider the signature provider.
 *
 * @exception NoSuchAlgorithmException on unsupported signature
 * algorithms.
 * @exception InvalidKeyException on incorrect key.
 * @exception SignatureException on signature errors.
 * @exception CertificateException on encoding errors.
 * @exception UnsupportedOperationException if the method is not supported
 * @since 1.8
 */
public void verify(PublicKey key, Provider sigProvider)
    throws CertificateException, NoSuchAlgorithmException,
    InvalidKeyException, SignatureException {
    X509CertImpl.verify(this, key, sigProvider);
}
 
Example 11
Source File: X509Certificate.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Verifies that this certificate was signed using the
 * private key that corresponds to the specified public key.
 * This method uses the signature verification engine
 * supplied by the specified provider. Note that the specified
 * Provider object does not have to be registered in the provider list.
 *
 * This method was added to version 1.8 of the Java Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation.
 *
 * @param key the PublicKey used to carry out the verification.
 * @param sigProvider the signature provider.
 *
 * @exception NoSuchAlgorithmException on unsupported signature
 * algorithms.
 * @exception InvalidKeyException on incorrect key.
 * @exception SignatureException on signature errors.
 * @exception CertificateException on encoding errors.
 * @exception UnsupportedOperationException if the method is not supported
 * @since 1.8
 */
public void verify(PublicKey key, Provider sigProvider)
    throws CertificateException, NoSuchAlgorithmException,
    InvalidKeyException, SignatureException {
    X509CertImpl.verify(this, key, sigProvider);
}
 
Example 12
Source File: X509Certificate.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Verifies that this certificate was signed using the
 * private key that corresponds to the specified public key.
 * This method uses the signature verification engine
 * supplied by the specified provider. Note that the specified
 * Provider object does not have to be registered in the provider list.
 *
 * This method was added to version 1.8 of the Java Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation.
 *
 * @param key the PublicKey used to carry out the verification.
 * @param sigProvider the signature provider.
 *
 * @exception NoSuchAlgorithmException on unsupported signature
 * algorithms.
 * @exception InvalidKeyException on incorrect key.
 * @exception SignatureException on signature errors.
 * @exception CertificateException on encoding errors.
 * @exception UnsupportedOperationException if the method is not supported
 * @since 1.8
 */
public void verify(PublicKey key, Provider sigProvider)
    throws CertificateException, NoSuchAlgorithmException,
    InvalidKeyException, SignatureException {
    X509CertImpl.verify(this, key, sigProvider);
}
 
Example 13
Source File: X509Certificate.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Verifies that this certificate was signed using the
 * private key that corresponds to the specified public key.
 * This method uses the signature verification engine
 * supplied by the specified provider. Note that the specified
 * Provider object does not have to be registered in the provider list.
 *
 * This method was added to version 1.8 of the Java Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation.
 *
 * @param key the PublicKey used to carry out the verification.
 * @param sigProvider the signature provider.
 *
 * @exception NoSuchAlgorithmException on unsupported signature
 * algorithms.
 * @exception InvalidKeyException on incorrect key.
 * @exception SignatureException on signature errors.
 * @exception CertificateException on encoding errors.
 * @exception UnsupportedOperationException if the method is not supported
 * @since 1.8
 */
public void verify(PublicKey key, Provider sigProvider)
    throws CertificateException, NoSuchAlgorithmException,
    InvalidKeyException, SignatureException {
    X509CertImpl.verify(this, key, sigProvider);
}
 
Example 14
Source File: X509Certificate.java    From jdk8u-dev-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Verifies that this certificate was signed using the
 * private key that corresponds to the specified public key.
 * This method uses the signature verification engine
 * supplied by the specified provider. Note that the specified
 * Provider object does not have to be registered in the provider list.
 *
 * This method was added to version 1.8 of the Java Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation.
 *
 * @param key the PublicKey used to carry out the verification.
 * @param sigProvider the signature provider.
 *
 * @exception NoSuchAlgorithmException on unsupported signature
 * algorithms.
 * @exception InvalidKeyException on incorrect key.
 * @exception SignatureException on signature errors.
 * @exception CertificateException on encoding errors.
 * @exception UnsupportedOperationException if the method is not supported
 * @since 1.8
 */
public void verify(PublicKey key, Provider sigProvider)
    throws CertificateException, NoSuchAlgorithmException,
    InvalidKeyException, SignatureException {
    X509CertImpl.verify(this, key, sigProvider);
}