X509Factory.intern

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.

@param c The source X509Certificate @return An X509CertImpl object that is either a cached certificate or a newly built X509CertImpl from the provided X509Certificate @ if failures occur while obtaining the DER encoding for certificate data.

  1. X509CertImpl intern(X509Certificate c)
    class X509Factory
  2. X509CRLImpl intern(X509CRL c)

Meta