Class X509DnsName
- java.lang.Object
-
- org.xwiki.crypto.pkix.params.x509certificate.extension.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 Summary
Constructors Constructor Description X509DnsName(String domain)
Constructs a DNS domain general name from the given string.X509DnsName(org.bouncycastle.asn1.x509.GeneralName name)
Create a new instance from a Bouncy Castle general name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDomain()
org.bouncycastle.asn1.x509.GeneralName
getGeneralName()
String
getName()
-
-
-
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.
-
getName
public String getName()
- Specified by:
getName
in interfaceX509StringGeneralName
- Returns:
- the string representation of this general name.
-
getGeneralName
public org.bouncycastle.asn1.x509.GeneralName getGeneralName()
- Specified by:
getGeneralName
in interfaceorg.xwiki.crypto.pkix.internal.extension.BcGeneralName
- Returns:
- the native Bouncy Castle general name.
-
-