Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography 1.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.bouncycastle.jce.provider
Class JDKX509CertificateFactory

    java.lang.Object
      |
      +--java.security.cert.CertificateFactorySpi
            |
            +--org.bouncycastle.jce.provider.JDKX509CertificateFactory

public class JDKX509CertificateFactory
extends CertificateFactorySpi

class for dealing with X509 certificates.

At the moment this will deal with "-----BEGIN CERTIFICATE-----" to "-----END CERTIFICATE-----" base 64 encoded certs, as well as the BER binaries of certificates and some classes of PKCS#7 objects.

Constructor Summary
`JDKX509CertificateFactory()`

Method Summary
`Certificate` | `engineGenerateCertificate(java.io.InputStream in)` Generates a certificate object and initializes it with the data read from the input stream inStream.
`Collection` | `engineGenerateCertificates(java.io.InputStream inStream)` Returns a (possibly empty) collection view of the certificates read from the given input stream inStream.
`CertPath` | `engineGenerateCertPath(java.io.InputStream inStream)` Generates a `CertPath` object and initializes it with the data read from the `InputStream` inStream.
`CertPath` | `engineGenerateCertPath(java.io.InputStream inStream, java.lang.String encoding)` Generates a `CertPath` object and initializes it with the data read from the `InputStream` inStream.
`CertPath` | `engineGenerateCertPath(List certificates)` Generates a `CertPath` object and initializes it with a `List` of `Certificate`s. The certificates supplied must be of a type supported by the `CertificateFactory`.
`CRL` | `engineGenerateCRL(java.io.InputStream inStream)` Generates a certificate revocation list (CRL) object and initializes it with the data read from the input stream inStream.
`Collection` | `engineGenerateCRLs(java.io.InputStream inStream)` Returns a (possibly empty) collection view of the CRLs read from the given input stream inStream.
`Iterator` | `engineGetCertPathEncodings()` Returns an iteration of the `CertPath` encodings supported by this certificate factory, with the default encoding first.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### JDKX509CertificateFactory

    public JDKX509CertificateFactory()

Method Detail

### engineGenerateCertificate

    public Certificate engineGenerateCertificate(java.io.InputStream in)
                                          throws CertificateException

  Generates a certificate object and initializes it with the data read from the input stream inStream.

  Specified by:
    `engineGenerateCertificate` in class `CertificateFactorySpi`
    `CertificateException`

### engineGenerateCertificates

    public Collection engineGenerateCertificates(java.io.InputStream inStream)
                                          throws CertificateException

  Returns a (possibly empty) collection view of the certificates read from the given input stream inStream.

  Specified by:
    `engineGenerateCertificates` in class `CertificateFactorySpi`
    `CertificateException`

### engineGenerateCRL

    public CRL engineGenerateCRL(java.io.InputStream inStream)
                          throws CRLException

  Generates a certificate revocation list (CRL) object and initializes it with the data read from the input stream inStream.

  Specified by:
    `engineGenerateCRL` in class `CertificateFactorySpi`
    `CRLException`

### engineGenerateCRLs

    public Collection engineGenerateCRLs(java.io.InputStream inStream)
                                  throws CRLException

  Returns a (possibly empty) collection view of the CRLs read from the given input stream inStream. The inStream may contain a sequence of DER-encoded CRLs, or a PKCS#7 CRL set. This is a PKCS#7 SignedData object, with the only signficant field being crls. In particular the signature and the contents are ignored.

  Specified by:
    `engineGenerateCRLs` in class `CertificateFactorySpi`
    `CRLException`

### engineGetCertPathEncodings

    public Iterator engineGetCertPathEncodings()

  Description copied from class: `CertificateFactorySpi`
  Returns an iteration of the `CertPath` encodings supported by this certificate factory, with the default encoding first. See Appendix A in the Java Certification Path API Programmer's Guide for information about standard encoding names.
  Attempts to modify the returned `Iterator` via its `remove` method result in an `UnsupportedOperationException`.
  This method was added to version 1.4 of the Java 2 Platform Standard Edition. In order to maintain backwards compatibility with existing service providers, this method cannot be `abstract` and by default throws an `UnsupportedOperationException`.

  Specified by:
    `engineGetCertPathEncodings` in class `CertificateFactorySpi`
  Returns:
    an `Iterator` over the names of the supported `CertPath` encodings (as `String`s)

### engineGenerateCertPath

    public CertPath engineGenerateCertPath(java.io.InputStream inStream)
                                    throws CertificateException

  Description copied from class: `CertificateFactorySpi`
  Generates a `CertPath` object and initializes it with the data read from the `InputStream` inStream. The data is assumed to be in the default encoding.

  Specified by:
    `engineGenerateCertPath` in class `CertificateFactorySpi`
  Parameters:
    `inStream` - an `InputStream` containing the data
  Returns:
    a `CertPath` initialized with the data from the `InputStream`
  Throws:
    `CertificateException` - if an exception occurs while decoding

### engineGenerateCertPath

    public CertPath engineGenerateCertPath(java.io.InputStream inStream,
                                           java.lang.String encoding)
                                    throws CertificateException

  Description copied from class: `CertificateFactorySpi`
  Generates a `CertPath` object and initializes it with the data read from the `InputStream` inStream. The data is assumed to be in the specified encoding.
  This method was added to version 1.4 of the Java 2 Platform Standard Edition. In order to maintain backwards compatibility with existing service providers, this method cannot be `abstract` and by default throws an `UnsupportedOperationException`.

  Specified by:
    `engineGenerateCertPath` in class `CertificateFactorySpi`
  Parameters:
    `inStream` - an `InputStream` containing the data
    `encoding` - the encoding used for the data
  Returns:
    a `CertPath` initialized with the data from the `InputStream`
  Throws:
    `CertificateException` - if an exception occurs while decoding or the encoding requested is not supported

### engineGenerateCertPath

    public CertPath engineGenerateCertPath(List certificates)
                                    throws CertificateException

  Description copied from class: `CertificateFactorySpi`
  Generates a `CertPath` object and initializes it with a `List` of `Certificate`s.
  The certificates supplied must be of a type supported by the `CertificateFactory`. They will be copied out of the supplied `List` object.
  This method was added to version 1.4 of the Java 2 Platform Standard Edition. In order to maintain backwards compatibility with existing service providers, this method cannot be `abstract` and by default throws an `UnsupportedOperationException`.

  Specified by:
    `engineGenerateCertPath` in class `CertificateFactorySpi`
  Parameters:
    `certificates` - a `List` of `Certificate`s
  Returns:
    a `CertPath` initialized with the supplied list of certificates
  Throws:
    `CertificateException` - if an exception occurs

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography 1.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD