Save This Page
Home » openjdk-7 » sun.security » provider » [javadoc | source]
sun.security.provider
public class: X509Factory [javadoc | source]
java.lang.Object
   java.security.cert.CertificateFactorySpi
      sun.security.provider.X509Factory
This class defines a certificate factory for X.509 v3 certificates & certification paths, and X.509 v2 certificate revocation lists (CRLs).
Field Summary
public static final  String BEGIN_CERT     
public static final  String END_CERT     
Method from sun.security.provider.X509Factory Summary:
engineGenerateCRL,   engineGenerateCRLs,   engineGenerateCertPath,   engineGenerateCertPath,   engineGenerateCertPath,   engineGenerateCertificate,   engineGenerateCertificates,   engineGetCertPathEncodings,   intern,   intern
Methods from java.security.cert.CertificateFactorySpi:
engineGenerateCRL,   engineGenerateCRLs,   engineGenerateCertPath,   engineGenerateCertPath,   engineGenerateCertPath,   engineGenerateCertificate,   engineGenerateCertificates,   engineGetCertPathEncodings
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.security.provider.X509Factory Detail:
 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.
 public Collection engineGenerateCRLs(InputStream is) throws CRLException 
    Returns a (possibly empty) collection view of X.509 CRLs read from the given input stream is.
 public CertPath engineGenerateCertPath(InputStream inStream) throws CertificateException 
    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.
 public CertPath engineGenerateCertPath(List certificates) throws CertificateException 
    Generates a CertPath object and initializes it with a List of Certificates.

    The certificates supplied must be of a type supported by the CertificateFactory. They will be copied out of the supplied List object.

 public CertPath engineGenerateCertPath(InputStream inStream,
    String encoding) throws CertificateException 
    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.
 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.
 public Collection engineGenerateCertificates(InputStream is) throws CertificateException 
    Returns a (possibly empty) collection view of X.509 certificates read from the given input stream is.
 public Iterator engineGetCertPathEncodings() 
    Returns an iteration of the CertPath encodings supported by this certificate factory, with the default encoding first.

    Attempts to modify the returned Iterator via its remove method result in an UnsupportedOperationException.

 public static synchronized 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.
 public static synchronized X509CRLImpl intern(X509CRL c) throws CRLException 
    Return an interned X509CRLImpl for the given certificate. For more information, see intern(X509Certificate).