Class X509URI

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

    public class X509URI
    extends Object
    implements X509StringGeneralName, org.xwiki.crypto.pkix.internal.extension.BcGeneralName
    Uniform Resource Identifier general name.
    Since:
    5.4
    Version:
    $Id: b6ffe74a22a95353f6bef4765809b41fec7881a5 $
    • Constructor Detail

      • X509URI

        public X509URI​(String str)
        Constructs a uniform resource locator general name by parsing the given string.
        Parameters:
        str - the string to be parsed into a URI
      • X509URI

        public X509URI​(URL url)
        Construct a uniform resource locator general name from an URL.
        Parameters:
        url - the url.
      • X509URI

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

      • getURL

        public URL getURL()
        Returns:
        the URL represented by this general name, or null if this name is malformed URL or the protocol handler is missing.
      • getURI

        public URI getURI()
        Returns:
        the URI represented by this general name, or null if this name violates RFC 2396.
      • 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.