Class X509GenericName

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

    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: a155a5e9157ea1a25ad74f36830df339f7008942 $
    • 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
        Returns:
        the native Bouncy Castle general name.