Package org.bouncycastle.asn1.cmp
Class PKIFreeText
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cmp.PKIFreeText
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable,org.bouncycastle.util.Encodable
public class PKIFreeText
extends org.bouncycastle.asn1.ASN1Object
PKIFreeText ::= SEQUENCE SIZE (1..MAX) OF UTF8String
-- text encoded as UTF-8 String [RFC3629] (note: each
-- UTF8String MAY include an [RFC3066] language tag
-- to indicate the language of the contained text
-- see [RFC2482] for details)
-
Constructor Summary
ConstructorsConstructorDescriptionPKIFreeText(String[] strs) PKIFreeText(org.bouncycastle.asn1.ASN1UTF8String p) PKIFreeText(org.bouncycastle.asn1.ASN1UTF8String[] strs) -
Method Summary
Modifier and TypeMethodDescriptionstatic PKIFreeTextgetInstance(Object obj) static PKIFreeTextgetInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) org.bouncycastle.asn1.DERUTF8StringgetStringAt(int i) Deprecated.org.bouncycastle.asn1.ASN1UTF8StringgetStringAtUTF8(int i) Return the UTF8STRING at index i.intsize()Return the number of string elements present.org.bouncycastle.asn1.ASN1PrimitivePKIFreeText ::= SEQUENCE SIZE (1..MAX) OF UTF8StringMethods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
PKIFreeText
public PKIFreeText(org.bouncycastle.asn1.ASN1UTF8String p) -
PKIFreeText
-
PKIFreeText
public PKIFreeText(org.bouncycastle.asn1.ASN1UTF8String[] strs) -
PKIFreeText
-
-
Method Details
-
getInstance
-
getInstance
-
size
public int size()Return the number of string elements present.- Returns:
- number of elements present.
-
getStringAt
public org.bouncycastle.asn1.DERUTF8String getStringAt(int i) Deprecated.UsegetStringAtUTF8(int)instead.Return the UTF8STRING at index i.- Parameters:
i- index of the string of interest- Returns:
- the string at index i.
-
getStringAtUTF8
public org.bouncycastle.asn1.ASN1UTF8String getStringAtUTF8(int i) Return the UTF8STRING at index i.- Parameters:
i- index of the string of interest- Returns:
- the string at index i.
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()PKIFreeText ::= SEQUENCE SIZE (1..MAX) OF UTF8String
- Specified by:
toASN1Primitivein interfaceorg.bouncycastle.asn1.ASN1Encodable- Specified by:
toASN1Primitivein classorg.bouncycastle.asn1.ASN1Object
-
getStringAtUTF8(int)instead.