Class X509URI
- java.lang.Object
-
- org.xwiki.crypto.pkix.params.x509certificate.extension.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 Summary
Constructors Constructor Description 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.X509URI(org.bouncycastle.asn1.x509.GeneralName name)
Create a new instance from a Bouncy Castle general name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.x509.GeneralName
getGeneralName()
String
getName()
URI
getURI()
URL
getURL()
-
-
-
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 interfaceX509StringGeneralName
- Returns:
- the string representation of this general name.
-
getGeneralName
public org.bouncycastle.asn1.x509.GeneralName getGeneralName()
- Specified by:
getGeneralName
in interfaceorg.xwiki.crypto.pkix.internal.extension.BcGeneralName
- Returns:
- the native Bouncy Castle general name.
-
-