@Unstable public class X509IpAddress extends Object implements X509StringGeneralName, org.xwiki.crypto.pkix.internal.extension.BcGeneralName
| Constructor and Description |
|---|
X509IpAddress(org.bouncycastle.asn1.x509.GeneralName name)
Create a new instance from a Bouncy Castle general name.
|
X509IpAddress(InetAddress ipAddress)
Construct a IP address general name from an ip address.
|
X509IpAddress(InetAddress ipAddress,
InetAddress ipMask)
Construct a IP address general name from an ip address.
|
X509IpAddress(String ipAddress)
Construct a IP address general name from an ip address.
|
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.asn1.x509.GeneralName |
getGeneralName() |
InetAddress |
getIpAddress() |
InetAddress |
getIpMask() |
String |
getName() |
public X509IpAddress(String ipAddress)
ipAddress - the ip address.public X509IpAddress(InetAddress ipAddress)
ipAddress - the ip address.public X509IpAddress(InetAddress ipAddress, InetAddress ipMask)
ipAddress - the ip address.ipMask - the ip mask.public X509IpAddress(org.bouncycastle.asn1.x509.GeneralName name)
name - the Bouncy Castle general name.public InetAddress getIpAddress() throws UnknownHostException
UnknownHostException - if the ip address is malformed.public InetAddress getIpMask() throws UnknownHostException
UnknownHostException - if the ip mask is malformed.public String getName()
getName in interface X509StringGeneralNamepublic org.bouncycastle.asn1.x509.GeneralName getGeneralName()
getGeneralName in interface org.xwiki.crypto.pkix.internal.extension.BcGeneralNameCopyright © 2004–2014 XWiki. All rights reserved.