public class OpensslTruststoreHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CERT_REGEXP |
| Constructor and Description |
|---|
OpensslTruststoreHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getFileHash(String path,
String regexp) |
static Collection<File> |
getFilesWithRegexp(String regexp,
File directory) |
static RDN[] |
getNormalizedRDNs(X500Principal name) |
static String |
getNsFile(String certLocation,
String suffix)
Returns a proper name of a namespaces or signing policy file for the given base
path of CA certificate.
|
static String |
getOpenSSLCAHash(X500Principal name,
boolean openssl1Mode) |
public static final String CERT_REGEXP
public static String getNsFile(String certLocation, String suffix)
certLocation - suffix - either '.namespaces' or '.signing_policy' (other will work but rather doesn't make sense)public static Collection<File> getFilesWithRegexp(String regexp, File directory)
public static String getOpenSSLCAHash(X500Principal name, boolean openssl1Mode)
public static RDN[] getNormalizedRDNs(X500Principal name) throws IOException
IOExceptionCopyright © 2012-2014 European Middleware Initiative. All Rights Reserved.