org.xwiki.crypto.pkix.params.x509certificate.extension
Class X509DnsName

java.lang.Object
  extended by org.xwiki.crypto.pkix.params.x509certificate.extension.X509DnsName
All Implemented Interfaces:
org.xwiki.crypto.pkix.internal.extension.BcGeneralName, X509GeneralName, X509StringGeneralName

@Unstable
public class X509DnsName
extends Object
implements X509StringGeneralName, org.xwiki.crypto.pkix.internal.extension.BcGeneralName

DNS domain general name.

Since:
5.4
Version:
$Id: f54fe3606aed1f2e4405852253ffa6cd214bd159 $

Constructor Summary
X509DnsName(org.bouncycastle.asn1.x509.GeneralName name)
          Create a new instance from a Bouncy Castle general name.
X509DnsName(String domain)
          Constructs a DNS domain general name from the given string.
 
Method Summary
 String getDomain()
           
 org.bouncycastle.asn1.x509.GeneralName getGeneralName()
           
 String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface X509StringGeneralName
Returns:
the string representation of this general name.

getGeneralName

public org.bouncycastle.asn1.x509.GeneralName getGeneralName()
Specified by:
getGeneralName in interface org.xwiki.crypto.pkix.internal.extension.BcGeneralName


Copyright © 2004–2014 XWiki. All rights reserved.