public final class CertificateUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
logger |
| Modifier | Constructor and Description |
|---|---|
private |
CertificateUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
extractUsername(String dn)
Extracts the username from the specified DN.
|
static List<String> |
getSubjectAlternativeNames(X509Certificate certificate)
Returns a list of subject alternative names.
|
static boolean |
isStoreValid(URL keystore,
KeystoreType keystoreType,
char[] password)
Returns true if the given keystore can be loaded using the given keystore type and password.
|
public static boolean isStoreValid(URL keystore, KeystoreType keystoreType, char[] password)
keystore - the keystore to validatekeystoreType - the type of the keystorepassword - the password to access the keystorepublic static String extractUsername(String dn)
dn - the dn to extract the username frompublic static List<String> getSubjectAlternativeNames(X509Certificate certificate) throws CertificateParsingException
certificate - a certificateCertificateParsingException - if parsing the certificate failedCopyright © 2015 Apache NiFi Project. All rights reserved.