public class SSLCertificate extends Object
Modifier and Type | Field and Description |
---|---|
static String |
X509EXT_OID_SAN |
static int |
X509EXT_SAN_DNSNAME |
static int |
X509EXT_SAN_DTORYNAME |
static int |
X509EXT_SAN_IPADDR |
static int |
X509EXT_SAN_RFC822NAME |
Constructor and Description |
---|
SSLCertificate() |
Modifier and Type | Method and Description |
---|---|
static String |
getCN(X509Certificate cert) |
static Certificate |
load(CertificateFactory fact,
InputStream fin) |
static X509Certificate |
loadX509(CertificateFactory fact,
File fh) |
static X509Certificate |
loadX509(CertificateFactory fact,
URL url) |
static boolean |
matchSubjectHost(X509Certificate cert,
String hostname) |
public static final String X509EXT_OID_SAN
public static final int X509EXT_SAN_RFC822NAME
public static final int X509EXT_SAN_DNSNAME
public static final int X509EXT_SAN_DTORYNAME
public static final int X509EXT_SAN_IPADDR
public static Certificate load(CertificateFactory fact, InputStream fin) throws CertificateException
CertificateException
public static X509Certificate loadX509(CertificateFactory fact, File fh) throws IOException, CertificateException
IOException
CertificateException
public static X509Certificate loadX509(CertificateFactory fact, URL url) throws IOException, CertificateException
IOException
CertificateException
public static boolean matchSubjectHost(X509Certificate cert, String hostname) throws CertificateParsingException
CertificateParsingException
public static String getCN(X509Certificate cert)
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.