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

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

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

Generic holder for general name not supported by specific class.

Since:
5.4
Version:
$Id: c301c93059c2bd7ffa1e9c82c6dea8ca8573487a $

Constructor Summary
X509GenericName(byte[] encoded)
          Create a new instance from a encoded ASN.1 name.
X509GenericName(org.bouncycastle.asn1.x509.GeneralName name)
          Create a new instance from a Bouncy Castle general name.
X509GenericName(int tag, byte[] encoded)
          Create a new instance from a encoded ASN.1 value.
 
Method Summary
 org.bouncycastle.asn1.x509.GeneralName getGeneralName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509GenericName

public X509GenericName(int tag,
                       byte[] encoded)
                throws IOException
Create a new instance from a encoded ASN.1 value.

Parameters:
tag - the tag value.
encoded - the encoded ASN.1 value.
Throws:
IOException - on encoding error.

X509GenericName

public X509GenericName(byte[] encoded)
                throws IOException
Create a new instance from a encoded ASN.1 name.

Parameters:
encoded - the encoded ASN.1 value.
Throws:
IOException - on encoding error.

X509GenericName

public X509GenericName(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


Copyright © 2004–2014 XWiki. All rights reserved.