| Package | Description | 
|---|---|
| javax.security.cert | Provides classes for public key certificates. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | CertificateEncodingExceptionCertificate Encoding Exception. | |
| class  | CertificateExpiredExceptionCertificate Expired Exception. | |
| class  | CertificateNotYetValidExceptionCertificate is not yet valid exception. | |
| class  | CertificateParsingExceptionCertificate Parsing Exception. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static X509Certificate | X509Certificate. getInstance(byte[] certData)Instantiates an X509Certificate object, and initializes it with
 the specified byte array. | |
| static X509Certificate | X509Certificate. getInstance(InputStream inStream)Instantiates an X509Certificate object, and initializes it with
 the data read from the input stream  inStream. | |
| abstract void | Certificate. verify(PublicKey key)Verifies that this certificate was signed using the
 private key that corresponds to the specified public key. | |
| abstract void | Certificate. verify(PublicKey key,
      String sigProvider)Verifies that this certificate was signed using the
 private key that corresponds to the specified public key. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.