Class X509DnsName

  • All Implemented Interfaces:
    org.xwiki.crypto.pkix.internal.extension.BcGeneralName, X509GeneralName, X509StringGeneralName

    public class X509DnsName
    extends Object
    implements X509StringGeneralName, org.xwiki.crypto.pkix.internal.extension.BcGeneralName
    DNS domain general name.
    Since:
    5.4
    Version:
    $Id: eece3fcd8c0e9b70478b79edcaac79e9870ae2da $
    • Constructor Detail

      • X509DnsName

        public X509DnsName​(String domain)
        Constructs a DNS domain general name from the given string.
        Parameters:
        domain - the domain name compliant with RFC 1034.
      • X509DnsName

        public X509DnsName​(org.bouncycastle.asn1.x509.GeneralName name)
        Create a new instance from a Bouncy Castle general name.
        Parameters:
        name - the Bouncy Castle general name.
    • Method Detail

      • getDomain

        public String getDomain()
        Returns:
        the domain name represented by this general name.
      • getGeneralName

        public org.bouncycastle.asn1.x509.GeneralName getGeneralName()
        Specified by:
        getGeneralName in interface org.xwiki.crypto.pkix.internal.extension.BcGeneralName
        Returns:
        the native Bouncy Castle general name.