Top Fields Constructors Methods
org.bouncycastle.asn1.x509

public Class GeneralNames

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Object, .ASN1ObjectIdentifier, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERSequence, org.bouncycastle.util.Strings

Field Summary

Modifier and TypeField and Description
private final GeneralName[]

Constructor Summary

AccessConstructor and Description
public
GeneralNames(GeneralName
the name to be contained.
name
)

Construct a GeneralNames object containing one GeneralName.

public
private

Method Summary

Modifier and TypeMethod and Description
private static GeneralName[]
copy(GeneralName[] names)

public static GeneralNames
public static GeneralNames
public static GeneralNames
getInstance(ASN1TaggedObject obj, boolean explicit)

public GeneralName[]
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

namesback to summary
private final GeneralName[] names

Constructor Detail

GeneralNamesback to summary
public GeneralNames(GeneralName name)

Construct a GeneralNames object containing one GeneralName.

Parameters
name:GeneralName

the name to be contained.

GeneralNamesback to summary
public GeneralNames(GeneralName[] names)
GeneralNamesback to summary
private GeneralNames(ASN1Sequence seq)

Method Detail

copyback to summary
private static GeneralName[] copy(GeneralName[] names)
fromExtensionsback to summary
public static GeneralNames fromExtensions(Extensions extensions, ASN1ObjectIdentifier extOID)
getInstanceback to summary
public static GeneralNames getInstance(Object obj)
getInstanceback to summary
public static GeneralNames getInstance(ASN1TaggedObject obj, boolean explicit)
getNamesback to summary
public GeneralName[] getNames()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

GeneralNames ::= SEQUENCE SIZE {1..MAX} OF GeneralName
Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object