Class OpensslTruststoreHelper
java.lang.Object
eu.emi.security.authn.x509.helpers.trust.OpensslTruststoreHelper
Several static methods helping to mangle truststore file paths in openssl style.
- Author:
- K. Benedyczak
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetFileHash(String path, String regexp) static Collection<File>getFilesWithRegexp(String regexp, File directory) static org.bouncycastle.asn1.x500.RDN[]static Stringstatic StringgetOpenSSLCAHash(X500Principal name, boolean openssl1Mode)
-
Field Details
-
CERT_REGEXP
- See Also:
-
-
Constructor Details
-
OpensslTruststoreHelper
public OpensslTruststoreHelper()
-
-
Method Details
-
getNsFile
- Parameters:
certLocation- certificate locationsuffix- either '.namespaces' or '.signing_policy' (other will work but rather doesn't make sense)- Returns:
- A proper name of a namespaces or signing policy file for the given base path of CA certificate.
-
getFileHash
-
getFilesWithRegexp
-
getOpenSSLCAHash
-
getNormalizedRDNs
public static org.bouncycastle.asn1.x500.RDN[] getNormalizedRDNs(X500Principal name) throws IOException - Throws:
IOException
-