Class X501DistinguishedName

    • Method Detail

      • fromDnsName

        public static X501DistinguishedName fromDnsName​(String dnsName)
        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

        public static X501DistinguishedName fromEmailAddress​(String value)
        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.
      • parse

        public static X501DistinguishedName parse​(String strDn)
        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.
      • getCommonName

        public String getCommonName()
      • getCountry

        public String getCountry()
      • getCountryDisplayName

        public String getCountryDisplayName​(Locale locale)
      • getDomainComponent

        public String getDomainComponent()
      • getDomainComponents

        public String[] getDomainComponents()
      • getEmail

        public String getEmail()
      • getLocality

        public String getLocality()
      • getOrganization

        public String getOrganization()
      • getOrganizationalUnit

        public String getOrganizationalUnit()
      • getState

        public String getState()
      • getStreet

        public String getStreet()
      • getUid

        public String getUid()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toDisplayString

        public String toDisplayString()
      • toStringNormalized

        public String toStringNormalized()
      • getLdapName

        public LdapName getLdapName()