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

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

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

Uniform Resource Identifier general name.

Since:
5.4
Version:
$Id: 62000357e1f7a0c1c839e25f1d2e3a0d8a519a1f $

Constructor Summary
X509URI(org.bouncycastle.asn1.x509.GeneralName name)
          Create a new instance from a Bouncy Castle general name.
X509URI(String str)
          Constructs a uniform resource locator general name by parsing the given string.
X509URI(URL url)
          Construct a uniform resource locator general name from an URL.
 
Method Summary
 org.bouncycastle.asn1.x509.GeneralName getGeneralName()
           
 String getName()
           
 URI getURI()
           
 URL getURL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

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.