org.apache.directory.shared.asn1.der
Class DERObject
java.lang.Object
org.apache.directory.shared.asn1.der.DERObject
- All Implemented Interfaces:
- DEREncodable
- Direct Known Subclasses:
- DERApplicationSpecific, DERBitString, DERBoolean, DEREnumerated, DERInteger, DERNull, DERObjectIdentifier, DEROctetString, DERString, DERUnknownTag
- public abstract class DERObject
- extends java.lang.Object
- implements DEREncodable
DER object.
Constructor Summary |
protected |
DERObject(int tag,
byte[] value)
Basic DERObject constructor. |
Method Summary |
void |
encode(ASN1OutputStream out)
|
boolean |
equals(java.lang.Object o)
Two DERObjects are equal if their underlying byte arrays are equal. |
(package private) byte[] |
getOctets()
|
int |
hashCode()
Fast rotate left and XOR hashcode generator. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
TERMINATOR
static final int TERMINATOR
- See Also:
- Constant Field Values
BOOLEAN
static final int BOOLEAN
- See Also:
- Constant Field Values
INTEGER
static final int INTEGER
- See Also:
- Constant Field Values
BIT_STRING
static final int BIT_STRING
- See Also:
- Constant Field Values
OCTET_STRING
static final int OCTET_STRING
- See Also:
- Constant Field Values
NULL
static final int NULL
- See Also:
- Constant Field Values
OBJECT_IDENTIFIER
static final int OBJECT_IDENTIFIER
- See Also:
- Constant Field Values
EXTERNAL
static final int EXTERNAL
- See Also:
- Constant Field Values
ENUMERATED
static final int ENUMERATED
- See Also:
- Constant Field Values
SEQUENCE
static final int SEQUENCE
- See Also:
- Constant Field Values
SET
static final int SET
- See Also:
- Constant Field Values
NUMERIC_STRING
static final int NUMERIC_STRING
- See Also:
- Constant Field Values
PRINTABLE_STRING
static final int PRINTABLE_STRING
- See Also:
- Constant Field Values
T61_STRING
static final int T61_STRING
- See Also:
- Constant Field Values
VIDEOTEX_STRING
static final int VIDEOTEX_STRING
- See Also:
- Constant Field Values
IA5_STRING
static final int IA5_STRING
- See Also:
- Constant Field Values
UTC_TIME
static final int UTC_TIME
- See Also:
- Constant Field Values
GENERALIZED_TIME
static final int GENERALIZED_TIME
- See Also:
- Constant Field Values
GRAPHIC_STRING
static final int GRAPHIC_STRING
- See Also:
- Constant Field Values
VISIBLE_STRING
static final int VISIBLE_STRING
- See Also:
- Constant Field Values
GENERAL_STRING
static final int GENERAL_STRING
- See Also:
- Constant Field Values
UNIVERSAL_STRING
static final int UNIVERSAL_STRING
- See Also:
- Constant Field Values
BMP_STRING
static final int BMP_STRING
- See Also:
- Constant Field Values
UTF8_STRING
static final int UTF8_STRING
- See Also:
- Constant Field Values
CONSTRUCTED
static final int CONSTRUCTED
- See Also:
- Constant Field Values
APPLICATION
static final int APPLICATION
- See Also:
- Constant Field Values
TAGGED
static final int TAGGED
- See Also:
- Constant Field Values
tag
protected int tag
value
protected byte[] value
DERObject
protected DERObject(int tag,
byte[] value)
- Basic DERObject constructor.
encode
public void encode(ASN1OutputStream out)
throws java.io.IOException
- Specified by:
encode
in interface DEREncodable
- Throws:
java.io.IOException
getOctets
byte[] getOctets()
hashCode
public int hashCode()
- Fast rotate left and XOR hashcode generator.
- Returns:
- a hash code for the byte array backing this object.
equals
public boolean equals(java.lang.Object o)
- Two DERObjects are equal if their underlying byte arrays are equal.
- Returns:
- true if the two DERObject underlying byte arrays are equal.
Copyright © 2003-2006 . All Rights Reserved.