Java Code Examples for sun.security.provider.X509Factory#intern()
The following examples show how to use
sun.security.provider.X509Factory#intern() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: X509CertImpl.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509Certificate * to a X509CertImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CertImpl toImpl(X509Certificate cert) throws CertificateException { if (cert instanceof X509CertImpl) { return (X509CertImpl)cert; } else { return X509Factory.intern(cert); } }
Example 2
Source File: X509CRLImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509CRL * to a X509CRLImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CRLImpl toImpl(X509CRL crl) throws CRLException { if (crl instanceof X509CRLImpl) { return (X509CRLImpl)crl; } else { return X509Factory.intern(crl); } }
Example 3
Source File: X509CRLImpl.java From j2objc with Apache License 2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509CRL * to a X509CRLImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CRLImpl toImpl(X509CRL crl) throws CRLException { if (crl instanceof X509CRLImpl) { return (X509CRLImpl)crl; } else { return X509Factory.intern(crl); } }
Example 4
Source File: X509CRLImpl.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509CRL * to a X509CRLImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CRLImpl toImpl(X509CRL crl) throws CRLException { if (crl instanceof X509CRLImpl) { return (X509CRLImpl)crl; } else { return X509Factory.intern(crl); } }
Example 5
Source File: X509CRLImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509CRL * to a X509CRLImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CRLImpl toImpl(X509CRL crl) throws CRLException { if (crl instanceof X509CRLImpl) { return (X509CRLImpl)crl; } else { return X509Factory.intern(crl); } }
Example 6
Source File: X509CRLImpl.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509CRL * to a X509CRLImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CRLImpl toImpl(X509CRL crl) throws CRLException { if (crl instanceof X509CRLImpl) { return (X509CRLImpl)crl; } else { return X509Factory.intern(crl); } }
Example 7
Source File: X509CRLImpl.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509CRL * to a X509CRLImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CRLImpl toImpl(X509CRL crl) throws CRLException { if (crl instanceof X509CRLImpl) { return (X509CRLImpl)crl; } else { return X509Factory.intern(crl); } }
Example 8
Source File: X509CRLImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509CRL * to a X509CRLImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CRLImpl toImpl(X509CRL crl) throws CRLException { if (crl instanceof X509CRLImpl) { return (X509CRLImpl)crl; } else { return X509Factory.intern(crl); } }
Example 9
Source File: X509CertImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509Certificate * to a X509CertImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CertImpl toImpl(X509Certificate cert) throws CertificateException { if (cert instanceof X509CertImpl) { return (X509CertImpl)cert; } else { return X509Factory.intern(cert); } }
Example 10
Source File: X509CRLImpl.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509CRL * to a X509CRLImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CRLImpl toImpl(X509CRL crl) throws CRLException { if (crl instanceof X509CRLImpl) { return (X509CRLImpl)crl; } else { return X509Factory.intern(crl); } }
Example 11
Source File: X509CertImpl.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509Certificate * to a X509CertImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CertImpl toImpl(X509Certificate cert) throws CertificateException { if (cert instanceof X509CertImpl) { return (X509CertImpl)cert; } else { return X509Factory.intern(cert); } }
Example 12
Source File: X509CertImpl.java From j2objc with Apache License 2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509Certificate * to a X509CertImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CertImpl toImpl(X509Certificate cert) throws CertificateException { if (cert instanceof X509CertImpl) { return (X509CertImpl)cert; } else { return X509Factory.intern(cert); } }
Example 13
Source File: X509CertImpl.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509Certificate * to a X509CertImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CertImpl toImpl(X509Certificate cert) throws CertificateException { if (cert instanceof X509CertImpl) { return (X509CertImpl)cert; } else { return X509Factory.intern(cert); } }
Example 14
Source File: X509CRLImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509CRL * to a X509CRLImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CRLImpl toImpl(X509CRL crl) throws CRLException { if (crl instanceof X509CRLImpl) { return (X509CRLImpl)crl; } else { return X509Factory.intern(crl); } }
Example 15
Source File: X509CertImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509Certificate * to a X509CertImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CertImpl toImpl(X509Certificate cert) throws CertificateException { if (cert instanceof X509CertImpl) { return (X509CertImpl)cert; } else { return X509Factory.intern(cert); } }
Example 16
Source File: X509CRLImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509CRL * to a X509CRLImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CRLImpl toImpl(X509CRL crl) throws CRLException { if (crl instanceof X509CRLImpl) { return (X509CRLImpl)crl; } else { return X509Factory.intern(crl); } }
Example 17
Source File: X509CertImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509Certificate * to a X509CertImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CertImpl toImpl(X509Certificate cert) throws CertificateException { if (cert instanceof X509CertImpl) { return (X509CertImpl)cert; } else { return X509Factory.intern(cert); } }
Example 18
Source File: X509CRLImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509CRL * to a X509CRLImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CRLImpl toImpl(X509CRL crl) throws CRLException { if (crl instanceof X509CRLImpl) { return (X509CRLImpl)crl; } else { return X509Factory.intern(crl); } }
Example 19
Source File: X509CertImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509Certificate * to a X509CertImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CertImpl toImpl(X509Certificate cert) throws CertificateException { if (cert instanceof X509CertImpl) { return (X509CertImpl)cert; } else { return X509Factory.intern(cert); } }
Example 20
Source File: X509CRLImpl.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
/** * Utility method to convert an arbitrary instance of X509CRL * to a X509CRLImpl. Does a cast if possible, otherwise reparses * the encoding. */ public static X509CRLImpl toImpl(X509CRL crl) throws CRLException { if (crl instanceof X509CRLImpl) { return (X509CRLImpl)crl; } else { return X509Factory.intern(crl); } }