public class DERExternal extends ASN1Primitive
| 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 |
|---|---|
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
|
int |
hashCode()
Returns an integer hash code for this object.
|
equals, fromByteArray, toASN1PrimitivegetEncoded, getEncoded, hasEncodedTagValue, toASN1Objectpublic 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 datapublic int hashCode()
ObjectObject.equals(java.lang.Object) returns true must return
the same hash code value. This means that subclasses of Object
usually override both methods or neither method.
Note that hash values must not change over time unless information used in equals comparisons also changes.
See Writing a correct
hashCode method
if you intend implementing your own hashCode method.
hashCode in class ASN1PrimitiveObject.equals(java.lang.Object)public ASN1Primitive getDataValueDescriptor()
public ASN1ObjectIdentifier getDirectReference()
public int getEncoding()
0 single-ASN1-type1 OCTET STRING2 BIT STRINGpublic ASN1Primitive getExternalContent()
public ASN1Integer getIndirectReference()