public class DERExternal extends ASN1Object
BER, DERAPPLICATION, BIT_STRING, BMP_STRING, BOOLEAN, CONSTRUCTED, ENUMERATED, EXTERNAL, GENERAL_STRING, GENERALIZED_TIME, GRAPHIC_STRING, IA5_STRING, INTEGER, NULL, NUMERIC_STRING, OBJECT_IDENTIFIER, OCTET_STRING, PRINTABLE_STRING, SEQUENCE, SEQUENCE_OF, SET, SET_OF, T61_STRING, TAGGED, UNIVERSAL_STRING, UTC_TIME, UTF8_STRING, VIDEOTEX_STRING, VISIBLE_STRING| Constructor and Description |
|---|
DERExternal(ASN1EncodableVector vector) |
DERExternal(DERObjectIdentifier directReference,
DERInteger indirectReference,
ASN1Object dataValueDescriptor,
DERTaggedObject externalData)
Creates a new instance of DERExternal
See X.690 for more informations about the meaning of these parameters
|
DERExternal(DERObjectIdentifier directReference,
DERInteger indirectReference,
ASN1Object dataValueDescriptor,
int encoding,
DERObject externalData)
Creates a new instance of DERExternal.
|
| Modifier and Type | Method and Description |
|---|---|
ASN1Object |
getDataValueDescriptor()
Returns the data value descriptor
|
DERObjectIdentifier |
getDirectReference()
Returns the direct reference of the external element
|
int |
getEncoding()
Returns the encoding of the content.
|
DERObject |
getExternalContent()
Returns the content of this element
|
DERInteger |
getIndirectReference()
Returns the indirect reference of this element
|
int |
hashCode() |
equals, fromByteArraytoASN1ObjectgetDEREncoded, getDERObject, getEncoded, getEncodedpublic DERExternal(ASN1EncodableVector vector)
public DERExternal(DERObjectIdentifier directReference, DERInteger indirectReference, ASN1Object 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(DERObjectIdentifier directReference, DERInteger indirectReference, ASN1Object dataValueDescriptor, int encoding, DERObject 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()
hashCode in class ASN1Objectpublic ASN1Object getDataValueDescriptor()
public DERObjectIdentifier getDirectReference()
public int getEncoding()
0 single-ASN1-type1 OCTET STRING2 BIT STRINGpublic DERObject getExternalContent()
public DERInteger getIndirectReference()
Copyright © 2015. All rights reserved.