java.security.cert.CertificateFactorySpi , java.security.cert.Certificate , java.security.cert.CertPath , java.security.cert.CRL , java.security.cert.X509Certificate , java.security.cert.X509CRL , sun.security.x509.X509CertImpl , sun.security.x509.X509CRLImpl
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final int | |
| private static final Cache | |
| private static final Cache | |
| private static final int | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static <V> V | addIfNotPresent(Cache<Object, V> cache, byte[] encoding, V value)
Add the X509CertImpl or X509CRLImpl to the cache. |
| public static X509CertImpl | |
| public Certificate | Returns: an X.509 certificate object initialized with the data from the input stream.an input stream with the certificate data. is)Implements abstract java. Generates an X.509 certificate object and initializes it with
the data read from the input stream |
| public Collection | Returns: a (possibly empty) collection view of X.509 certificate objects initialized with the data from the input stream.the input stream with the certificates. is)Implements abstract java. Returns a (possibly empty) collection view of X.509 certificates read
from the given input stream |
| public CertPath | Returns: aCertPath initialized with the data from the
InputStreaman inStream)InputStream containing the dataOverrides java. Generates a |
| public CertPath | Returns: aCertPath initialized with the data from the
InputStreaman inStream, String InputStream containing the datathe encoding used for the data encoding)Overrides java. Generates a |
| public CertPath | Returns: aCertPath initialized with the supplied list of
certificatesa certificates)List of CertificatesOverrides java. Generates a |
| public CRL | Returns: an X.509 CRL object initialized with the data from the input stream.an input stream with the CRL data. is)Implements abstract java. Generates an X.509 certificate revocation list (CRL) object and
initializes it with the data read from the given input stream
|
| public Collection | Returns: a (possibly empty) collection view of X.509 CRL objects initialized with the data from the input stream.the input stream with the CRLs. is)Implements abstract java. Returns a (possibly empty) collection view of X.509 CRLs read
from the given input stream |
| public Iterator | Returns: anIterator over the names of the supported
CertPath encodings (as Strings)Overrides java. Returns an iteration of the |
| private static <V> V | getFromCache(Cache<Object, V> cache, byte[] encoding)
Get the X509CertImpl or X509CRLImpl from the cache. |
| public static X509CertImpl | Returns: An X509CertImpl object that is either a cached certificate or a newly built X509CertImpl from the provided X509CertificateThe source X509Certificate c)Return an interned X509CertImpl for the given certificate. |
| public static X509CRLImpl | |
| private Collection | |
| private Collection | |
| private static int | Returns: The current tag, used to check EOC in indefinite-length BERRead from this InputStream is, ByteArrayOutputStream Write into this OutputStream bout, int Tag already read (-1 mean not read) tag, int nesting depth limit depth)Read one BER data block. |
| private static int | readFully(InputStream in, ByteArrayOutputStream bout, int length)
Read from the stream until length bytes have been read or EOF has been reached. |
| private static byte[] | Returns: byte block or null if end of streamthe InputStream is)Returns an ASN.1 SEQUENCE from a stream, which might be a BER-encoded binary block or a PEM-style BASE64-encoded ASCII data. |
| BEGIN_CERT | back to summary |
|---|---|
| public static final String BEGIN_CERT | |
| BER_ITERATION_COUNT | back to summary |
|---|---|
| public static final int BER_ITERATION_COUNT | |
| certCache | back to summary |
|---|---|
| private static final Cache<Object, X509CertImpl> certCache | |
| crlCache | back to summary |
|---|---|
| private static final Cache<Object, X509CRLImpl> crlCache | |
| ENC_MAX_LENGTH | back to summary |
|---|---|
| private static final int ENC_MAX_LENGTH | |
| END_CERT | back to summary |
|---|---|
| public static final String END_CERT | |
| X509Factory | back to summary |
|---|---|
| public X509Factory() | |
| addIfNotPresent | back to summary |
|---|---|
| private static <V> V addIfNotPresent(Cache<Object, V> cache, byte[] encoding, V value) Add the X509CertImpl or X509CRLImpl to the cache. | |
| cachedGetX509Cert | back to summary |
|---|---|
| public static X509CertImpl cachedGetX509Cert(byte[] encoding) throws CertificateException | |
| engineGenerateCertificate | back to summary |
|---|---|
| public Certificate engineGenerateCertificate(InputStream is) throws CertificateException Implements abstract java. Generates an X.509 certificate object and initializes it with
the data read from the input stream
| |
| engineGenerateCertificates | back to summary |
|---|---|
| public Collection Implements abstract java. Returns a (possibly empty) collection view of X.509 certificates read
from the given input stream
| |
| engineGenerateCertPath | back to summary |
|---|---|
| public CertPath engineGenerateCertPath(InputStream inStream) throws CertificateException Overrides java. Generates a
| |
| engineGenerateCertPath | back to summary |
|---|---|
| public CertPath engineGenerateCertPath(InputStream inStream, String encoding) throws CertificateException Overrides java. Generates a
| |
| engineGenerateCertPath | back to summary |
|---|---|
| public CertPath engineGenerateCertPath(List<? extends Certificate> certificates) throws CertificateException Overrides java. Generates a
The certificates supplied must be of a type supported by the
| |
| engineGenerateCRL | back to summary |
|---|---|
| public CRL engineGenerateCRL(InputStream is) throws CRLException Implements abstract java. Generates an X.509 certificate revocation list (CRL) object and
initializes it with the data read from the given input stream
| |
| engineGenerateCRLs | back to summary |
|---|---|
| public Collection Implements abstract java. Returns a (possibly empty) collection view of X.509 CRLs read
from the given input stream
| |
| engineGetCertPathEncodings | back to summary |
|---|---|
| public Iterator Overrides java. Returns an iteration of the
Attempts to modify the returned | |
| getFromCache | back to summary |
|---|---|
| private static <V> V getFromCache(Cache<Object, V> cache, byte[] encoding) Get the X509CertImpl or X509CRLImpl from the cache. | |
| intern | back to summary |
|---|---|
| public static X509CertImpl intern(X509Certificate c) throws CertificateException Return an interned X509CertImpl for the given certificate. If the given X509Certificate or X509CertImpl is already present in the cert cache, the cached object is returned. Otherwise, if it is a X509Certificate, it is first converted to a X509CertImpl. Then the X509CertImpl is added to the cache and returned. Note that all certificates created via generateCertificate(InputStream) are already interned and this method does not need to be called. It is useful for certificates that cannot be created via generateCertificate() and for converting other X509Certificate implementations to an X509CertImpl.
| |
| intern | back to summary |
|---|---|
| public static X509CRLImpl intern(X509CRL c) throws CRLException Return an interned X509CRLImpl for the given certificate. For more information, see intern(X509Certificate).
| |
| parseX509orPKCS7Cert | back to summary |
|---|---|
| private Collection | |
| parseX509orPKCS7CRL | back to summary |
|---|---|
| private Collection | |
| readBERInternal | back to summary |
|---|---|
| private static int readBERInternal(InputStream is, ByteArrayOutputStream bout, int tag, int depth) throws IOException Read one BER data block. This method is aware of indefinite-length BER encoding and will read all the subsections in a recursive way
| |
| readFully | back to summary |
|---|---|
| private static int readFully(InputStream in, ByteArrayOutputStream bout, int length) throws IOException Read from the stream until length bytes have been read or EOF has been reached. Return the number of bytes actually read. | |
| readOneBlock | back to summary |
|---|---|
| private static byte[] readOneBlock(InputStream is) throws IOException Returns an ASN.1 SEQUENCE from a stream, which might be a BER-encoded binary block or a PEM-style BASE64-encoded ASCII data. In the latter case, it's de-BASE64'ed before return. After the reading, the input stream pointer is after the BER block, or after the newline character after the -----END SOMETHING----- line.
| |