All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.asn1.isismtt.x509.AdditionalInformationSyntax Maven / Gradle / Ivy

Go to download

The Bouncy Castle Java APIs for ASN.1 extension and utility APIs used to support bcpkix and bctls with the BC FIPS provider. The APIs may also be used with other providers although if being used in a FIPS context it is the responsibility of the user to ensure that any other providers used are FIPS certified and used appropriately.

There is a newer version: 2.0.3
Show newest version
/***************************************************************/
/******    DO NOT EDIT THIS CLASS bc-java SOURCE FILE     ******/
/***************************************************************/
package org.bouncycastle.asn1.isismtt.x509;

import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.x500.DirectoryString;

/**
 * Some other information of non-restrictive nature regarding the usage of this
 * certificate.
 * 
 * 
 *    AdditionalInformationSyntax ::= DirectoryString (SIZE(1..2048))
 * 
*/ public class AdditionalInformationSyntax extends ASN1Object { private DirectoryString information; public static AdditionalInformationSyntax getInstance(Object obj) { if (obj instanceof AdditionalInformationSyntax) { return (AdditionalInformationSyntax)obj; } if (obj != null) { return new AdditionalInformationSyntax(DirectoryString.getInstance(obj)); } return null; } private AdditionalInformationSyntax(DirectoryString information) { this.information = information; } /** * Constructor from a given details. * * @param information The description of the information. */ public AdditionalInformationSyntax(String information) { this(new DirectoryString(information)); } public DirectoryString getInformation() { return information; } /** * Produce an object suitable for an ASN1OutputStream. *

* Returns: *

     *   AdditionalInformationSyntax ::= DirectoryString (SIZE(1..2048))
     * 
* * @return a DERObject */ public ASN1Primitive toASN1Primitive() { return information.toASN1Primitive(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy