Class X509IpAddress

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

    public class X509IpAddress
    extends Object
    implements X509StringGeneralName, org.xwiki.crypto.pkix.internal.extension.BcGeneralName
    IP address general name.
    Since:
    5.4
    Version:
    $Id: 13ebca4e9e268304d6c88e258e1ab60916b4ca05 $
    • Constructor Detail

      • X509IpAddress

        public X509IpAddress​(String ipAddress)
        Construct a IP address general name from an ip address.
        Parameters:
        ipAddress - the ip address.
      • X509IpAddress

        public X509IpAddress​(InetAddress ipAddress)
        Construct a IP address general name from an ip address.
        Parameters:
        ipAddress - the ip address.
      • X509IpAddress

        public X509IpAddress​(InetAddress ipAddress,
                             InetAddress ipMask)
        Construct a IP address general name from an ip address.
        Parameters:
        ipAddress - the ip address.
        ipMask - the ip mask.
      • X509IpAddress

        public X509IpAddress​(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

      • 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.