CertificateUtil¶
-
public abstract class
CertificateUtil
¶ Created: Sep 22, 2010 3:09:01 PM
Author: Artur Hefczyc
Methods¶
createSelfSignedCertificate¶
createSelfSignedCertificate¶
-
public static CertificateEntry
createSelfSignedCertificate
(String email, String domain, String organizationUnit, String organization, String city, String state, String country, KeyPairSupplier keyPairSupplier)¶
exportToPemFormat¶
-
public static String
exportToPemFormat
(CertificateEntry entry)¶
extractCN¶
-
protected static String
extractCN
(X500Principal principal)¶
getCertificateBasicInfo¶
-
public static String
getCertificateBasicInfo
(Certificate cert)¶
getCertificateBasicInfo¶
-
public static StringBuilder
getCertificateBasicInfo
(StringBuilder sb, Certificate cert)¶
getCertificateFingerprint¶
-
public static String
getCertificateFingerprint
(Certificate cert)¶
getCertificateSerialNumber¶
-
public static Optional<BigInteger>
getCertificateSerialNumber
(Certificate cert)¶
loadCertificate¶
-
public static CertificateEntry
loadCertificate
(File file)¶
loadCertificate¶
-
public static CertificateEntry
loadCertificate
(byte[] bytes)¶ Loads a certificate from a DER byte buffer.
loadCertificate¶
-
public static CertificateEntry
loadCertificate
(String file)¶
match¶
parseCertificate¶
-
public static CertificateEntry
parseCertificate
(Reader data)¶
sort¶
-
public static Certificate[]
sort
(Certificate[] chain)¶
sort¶
-
public static List<Certificate>
sort
(List<Certificate> certs)¶
storeCertificate¶
-
public static void
storeCertificate
(String file, CertificateEntry entry)¶
validateCertificate¶
-
public static CertCheckResult
validateCertificate
(Certificate[] chain, KeyStore trustKeystore, boolean revocationEnabled)¶