public class CertUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COMMON_NAME |
static String |
EMAIL_ADDRESS |
static String |
MAIL |
static String |
UID |
Constructor and Description |
---|
CertUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getAttributeValue(X500Principal principal,
String attributeName)
Retrieves a given attribute value from the provided
X500Principal even if the attribute was enclosed in
a multi-valued RDN. |
static String |
getIssuerName(X509Certificate cert)
Returns the Issuer Name from the
X509Certificate 's issuer X500Principal . |
static String |
getSubjectName(X509Certificate cert)
Returns the Subject Name from the
X509Certificate 's subject X500Principal . |
public static final String COMMON_NAME
public static final String MAIL
public static final String EMAIL_ADDRESS
public static final String UID
public static String getSubjectName(X509Certificate cert)
X509Certificate
's subject X500Principal
.cert
- X509 Certificate Object.public static String getIssuerName(X509Certificate cert)
X509Certificate
's issuer X500Principal
.cert
- X509 Certificate Object.public static String getAttributeValue(X500Principal principal, String attributeName)
X500Principal
even if the attribute was enclosed in
a multi-valued RDN.principal
- The principal to retrieve the value from.attributeName
- The non-null name of the attribute to retrieve.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.