public class DERExternal extends ASN1Primitive
Modifier and Type | Field and Description |
---|---|
private ASN1Primitive |
dataValueDescriptor |
private ASN1ObjectIdentifier |
directReference |
private int |
encoding |
private ASN1Primitive |
externalContent |
private ASN1Integer |
indirectReference |
Constructor and Description |
---|
DERExternal(ASN1EncodableVector vector) |
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
|
DERExternal(ASN1ObjectIdentifier directReference,
ASN1Integer indirectReference,
ASN1Primitive dataValueDescriptor,
int encoding,
ASN1Primitive externalData)
Creates a new instance of DERExternal.
|
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
asn1Equals(ASN1Primitive o) |
(package private) void |
encode(ASN1OutputStream out) |
(package private) int |
encodedLength() |
ASN1Primitive |
getDataValueDescriptor()
Returns the data value descriptor
|
ASN1ObjectIdentifier |
getDirectReference()
Returns the direct reference of the external element
|
int |
getEncoding()
Returns the encoding of the content.
|
ASN1Primitive |
getExternalContent()
Returns the content of this element
|
ASN1Integer |
getIndirectReference()
Returns the indirect reference of this element
|
private ASN1Primitive |
getObjFromVector(ASN1EncodableVector v,
int index) |
int |
hashCode() |
(package private) boolean |
isConstructed() |
private void |
setDataValueDescriptor(ASN1Primitive dataValueDescriptor)
Sets the data value descriptor
|
private void |
setDirectReference(ASN1ObjectIdentifier directReferemce)
Sets the direct reference of the external element
|
private void |
setEncoding(int encoding)
Sets the encoding of the content.
|
private void |
setExternalContent(ASN1Primitive externalContent)
Sets the content of this element
|
private void |
setIndirectReference(ASN1Integer indirectReference)
Sets the indirect reference of this element
|
equals, fromByteArray, toASN1Primitive, toDERObject, toDLObject
getEncoded, getEncoded, hasEncodedTagValue, toASN1Object
private ASN1ObjectIdentifier directReference
private ASN1Integer indirectReference
private ASN1Primitive dataValueDescriptor
private int encoding
private ASN1Primitive externalContent
public DERExternal(ASN1EncodableVector vector)
public DERExternal(ASN1ObjectIdentifier directReference, ASN1Integer indirectReference, ASN1Primitive dataValueDescriptor, DERTaggedObject externalData)
directReference
- The direct reference or null
if not set.indirectReference
- The indirect reference or null
if not set.dataValueDescriptor
- The data value descriptor or null
if not set.externalData
- The external data in its encoded form.public DERExternal(ASN1ObjectIdentifier directReference, ASN1Integer indirectReference, ASN1Primitive dataValueDescriptor, int encoding, ASN1Primitive externalData)
directReference
- The direct reference or null
if not set.indirectReference
- The indirect reference or null
if not set.dataValueDescriptor
- The data value descriptor or null
if not set.encoding
- The encoding to be used for the external dataexternalData
- The external dataprivate ASN1Primitive getObjFromVector(ASN1EncodableVector v, int index)
public int hashCode()
hashCode
in class ASN1Primitive
boolean isConstructed()
isConstructed
in class ASN1Primitive
int encodedLength() throws IOException
encodedLength
in class ASN1Primitive
IOException
void encode(ASN1OutputStream out) throws IOException
encode
in class ASN1Primitive
IOException
boolean asn1Equals(ASN1Primitive o)
asn1Equals
in class ASN1Primitive
public ASN1Primitive getDataValueDescriptor()
public ASN1ObjectIdentifier getDirectReference()
public int getEncoding()
0
single-ASN1-type1
OCTET STRING2
BIT STRINGpublic ASN1Primitive getExternalContent()
public ASN1Integer getIndirectReference()
private void setDataValueDescriptor(ASN1Primitive dataValueDescriptor)
dataValueDescriptor
- The descriptorprivate void setDirectReference(ASN1ObjectIdentifier directReferemce)
directReferemce
- The referenceprivate void setEncoding(int encoding)
0
single-ASN1-type1
OCTET STRING2
BIT STRINGencoding
- The encodingprivate void setExternalContent(ASN1Primitive externalContent)
externalContent
- The contentprivate void setIndirectReference(ASN1Integer indirectReference)
indirectReference
- The reference