Class X509FactoryHybrid

java.lang.Object
java.security.cert.CertificateFactorySpi
com.ibm.crypto.ibmjcehybrid.provider.X509FactoryHybrid

public final class X509FactoryHybrid extends CertificateFactorySpi
This class is a facade for the X.509 v3 certificate factory and X.509 v2 certificate revocation lists (CRLs).
  • Constructor Details

    • X509FactoryHybrid

      public X509FactoryHybrid()
      Creates an instance of the X509FactoryHybrid class.
  • Method Details

    • engineGenerateCertificate

      public Certificate engineGenerateCertificate(InputStream is) throws CertificateException
      Generates an X.509 certificate object and initializes it with the data read from the input stream is.
      Specified by:
      engineGenerateCertificate in class CertificateFactorySpi
      Parameters:
      is - an input stream with the certificate data.
      Returns:
      an X.509 certificate object initialized with the data from the input stream.
      Throws:
      CertificateException - on parsing errors.
    • engineGenerateCertificates

      public Collection<? extends Certificate> engineGenerateCertificates(InputStream is) throws CertificateException
      Returns a (possibly empty) collection view of X.509 certificates read from the given input stream is.
      Specified by:
      engineGenerateCertificates in class CertificateFactorySpi
      Parameters:
      is - the input stream with the certificates.
      Returns:
      a (possibly empty) collection view of X.509 certificate objects initialized with the data from the input stream.
      Throws:
      CertificateException - on parsing errors.
    • engineGenerateCRL

      public CRL engineGenerateCRL(InputStream is) throws CRLException
      Generates an X.509 certificate revocation list (CRL) object and initializes it with the data read from the given input stream is.
      Specified by:
      engineGenerateCRL in class CertificateFactorySpi
      Parameters:
      is - an input stream with the CRL data.
      Returns:
      an X.509 CRL object initialized with the data from the input stream.
      Throws:
      CRLException - on parsing errors.
    • engineGenerateCRLs

      public Collection<? extends CRL> engineGenerateCRLs(InputStream is) throws CRLException
      Returns a (possibly empty) collection view of X.509 CRLs read from the given input stream is.
      Specified by:
      engineGenerateCRLs in class CertificateFactorySpi
      Parameters:
      is - the input stream with the CRLs.
      Returns:
      a (possibly empty) collection view of X.509 CRL objects initialized with the data from the input stream.
      Throws:
      CRLException - on parsing errors.
    • engineGenerateCertPath

      public CertPath engineGenerateCertPath(InputStream is) throws CertificateException
      Generates a CertPath object and initializes it with the data read from the input stream inStream. The data is assumed to be in the default encoding.
      Overrides:
      engineGenerateCertPath in class CertificateFactorySpi
      Parameters:
      is - an input stream with the data
      Returns:
      a CertPath initialized with the data from the input stream
      Throws:
      CertificateException - if an exception occurs
    • engineGenerateCertPath

      public CertPath engineGenerateCertPath(InputStream inStream, String encoding) throws CertificateException
      Generates a CertPath object and initializes it with the data read from the input stream inStream. The data is assumed to be in the specified encoding.
      Overrides:
      engineGenerateCertPath in class CertificateFactorySpi
      Parameters:
      inStream - an input stream with the data
      encoding - the encoding used for the data
      Returns:
      a CertPath initialized with the data from the input stream
      Throws:
      CertificateException - if an exception occurs
    • engineGenerateCertPath

      public CertPath engineGenerateCertPath(List<? extends Certificate> certificates) throws CertificateException
      Generates a CertPath object and initializes it with the list of certificates supplied. The certificates supplied must be of a type supported by the CertPathFactory.
      Overrides:
      engineGenerateCertPath in class CertificateFactorySpi
      Parameters:
      certificates - a List of Certificates
      Returns:
      a CertPath initialized with the supplied list of certificates
      Throws:
      CertificateException - if an exception occurs
    • engineGetCertPathEncodings

      public Iterator<String> engineGetCertPathEncodings()
      Returns the encodings supported by this certification path factory, with the default encoding first.
      Overrides:
      engineGetCertPathEncodings in class CertificateFactorySpi
      Returns:
      an Iterator of the encodings supported