public class CertUtil extends Object
Constructor and Description |
---|
CertUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getSubjectValue(X509Certificate cert,
String type)
Get a value out of the subject distinguished name.
|
static boolean |
saveCert(Certificate cert,
File file)
Modified from:
http://www.exampledepot.com/egs/java.security.cert/ExportCert.html
This method writes a certificate to a file in base64 format.
|
public static boolean saveCert(Certificate cert, File file)
public static String getSubjectValue(X509Certificate cert, String type)
type
- e.g. "CN"