java.lang.Object
gnu.java.security.der.DERValue
- All Implemented Interfaces:
- DER
- public class DERValue
- extends java.lang.Object
- implements DER
| Fields inherited from interface gnu.java.security.der.DER |
ANY, APPLICATION, BIT_STRING, BMP_STRING, BOOLEAN, CONSTRUCTED, CONSTRUCTED_VALUE, CONTEXT, ENUMERATED, GENERAL_STRING, GENERALIZED_TIME, GRAPHIC_STRING, IA5_STRING, INTEGER, ISO646_STRING, NULL, NUMERIC_STRING, OBJECT_IDENTIFIER, OCTET_STRING, PRINTABLE_STRING, PRIVATE, REAL, RELATIVE_OID, SEQUENCE, SET, T61_STRING, UNIVERSAL, UNIVERSAL_STRING, UTC_TIME, UTF8_STRING, VIDEOTEX_STRING |
tagClass
private final int tagClass
constructed
private final boolean constructed
tag
private final int tag
length
private int length
value
private final java.lang.Object value
encoded
private byte[] encoded
DERValue
public DERValue(int tag,
int length,
java.lang.Object value,
byte[] encoded)
DERValue
public DERValue(int tag,
java.lang.Object value)
getExternalTag
public int getExternalTag()
getTag
public int getTag()
getTagClass
public int getTagClass()
isConstructed
public boolean isConstructed()
getLength
public int getLength()
getValue
public java.lang.Object getValue()
getValueAs
public java.lang.Object getValueAs(int derType)
throws java.io.IOException
getEncoded
public byte[] getEncoded()
getEncodedLength
public int getEncodedLength()
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).