Class X501DistinguishedName
java.lang.Object
de.xima.fc.model.naming.X501DistinguishedName
- All Implemented Interfaces:
Serializable
Model for distinguished names (DN) of certificates as defined in RFC 4514.
- Since:
- 8.5.0
- Author:
- XIMA Media GmbH
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanstatic X501DistinguishedNamefromDnsName(String dnsName) Creates a distinguished name model from a DNS name.static X501DistinguishedNamefromEmailAddress(String value) Creates a distinguished name model from an email address.static X501DistinguishedNamefromX500Principal(X500Principal principal) getAttribute(String attributeName) getCountryDisplayName(Locale locale) String[]getEmail()getState()getUid()inthashCode()static X501DistinguishedNameCreates a distinguished name model from a distinguished name (DN) string.toString()
-
Method Details
-
builder
-
fromDnsName
Creates a distinguished name model from a DNS name.- Parameters:
dnsName- The DNS name.- Returns:
- The distinguished name model.
- Throws:
IllegalArgumentException- if the DNS name is blank or invalid.
-
fromEmailAddress
Creates a distinguished name model from an email address.- Parameters:
value- The email address.- Returns:
- The distinguished name model.
- Throws:
IllegalArgumentException- if the email address is blank.
-
fromX500Principal
-
parse
Creates a distinguished name model from a distinguished name (DN) string.- Parameters:
strDn- The distinguished name string.- Returns:
- The distinguished name model.
- Throws:
IllegalArgumentException- if the DN string is invalid or null.
-
equals
-
getAttribute
-
getCommonName
-
getCountry
-
getCountryDisplayName
-
getDomainComponent
-
getDomainComponents
-
getEmail
-
getLocality
-
getOrganization
-
getOrganizationalUnit
-
getState
-
getStreet
-
getUid
-
hashCode
-
toDisplayString
-
toString
-
toStringNormalized
-
toX500Principal
-
getLdapName
-