Package org.bouncycastle.asn1
Class DERExternal
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.ASN1Primitive
-
- org.bouncycastle.asn1.ASN1External
-
- org.bouncycastle.asn1.DERExternal
-
- All Implemented Interfaces:
ASN1Encodable
,Encodable
public class DERExternal extends ASN1External
Class representing the DER-type External
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.asn1.ASN1External
dataValueDescriptor, directReference, encoding, externalContent, indirectReference
-
-
Constructor Summary
Constructors Constructor Description DERExternal(ASN1EncodableVector vector)
Construct a DER EXTERNAL object, the input encoding vector must have exactly two elements on it.DERExternal(ASN1ObjectIdentifier directReference, ASN1Integer indirectReference, ASN1Primitive dataValueDescriptor, int encoding, ASN1Primitive externalData)
Creates a new instance of DERExternal.DERExternal(ASN1ObjectIdentifier directReference, ASN1Integer indirectReference, ASN1Primitive dataValueDescriptor, DERTaggedObject externalData)
Creates a new instance of DERExternal See X.690 for more informations about the meaning of these parameters
-
Method Summary
-
Methods inherited from class org.bouncycastle.asn1.ASN1External
getDataValueDescriptor, getDirectReference, getEncoding, getExternalContent, getIndirectReference, hashCode
-
Methods inherited from class org.bouncycastle.asn1.ASN1Primitive
encodeTo, encodeTo, equals, equals, equals, fromByteArray, toASN1Primitive
-
Methods inherited from class org.bouncycastle.asn1.ASN1Object
getEncoded, getEncoded, hasEncodedTagValue
-
-
-
-
Constructor Detail
-
DERExternal
public DERExternal(ASN1EncodableVector vector)
Construct a DER EXTERNAL object, the input encoding vector must have exactly two elements on it.Acceptable input formats are:
-
ASN1ObjectIdentifier
+ dataDERTaggedObject
(direct reference form) -
ASN1Integer
+ dataDERTaggedObject
(indirect reference form) - Anything but
DERTaggedObject
+ dataDERTaggedObject
(data value form)
- Throws:
java.lang.IllegalArgumentException
- if input size is wrong, or
-
-
DERExternal
public DERExternal(ASN1ObjectIdentifier directReference, ASN1Integer indirectReference, ASN1Primitive dataValueDescriptor, DERTaggedObject externalData)
Creates a new instance of DERExternal See X.690 for more informations about the meaning of these parameters- Parameters:
directReference
- The direct reference ornull
if not set.indirectReference
- The indirect reference ornull
if not set.dataValueDescriptor
- The data value descriptor ornull
if not set.externalData
- The external data in its encoded form.
-
DERExternal
public DERExternal(ASN1ObjectIdentifier directReference, ASN1Integer indirectReference, ASN1Primitive dataValueDescriptor, int encoding, ASN1Primitive externalData)
Creates a new instance of DERExternal. See X.690 for more informations about the meaning of these parameters- Parameters:
directReference
- The direct reference ornull
if not set.indirectReference
- The indirect reference ornull
if not set.dataValueDescriptor
- The data value descriptor ornull
if not set.encoding
- The encoding to be used for the external dataexternalData
- The external data
-
-