Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.java.security.der
Class DERValue  view DERValue download DERValue.java

java.lang.Object
  extended bygnu.java.security.der.DERValue
All Implemented Interfaces:
DER

public class DERValue
extends java.lang.Object
implements DER


Field Summary
private  boolean constructed
           
private  byte[] encoded
           
private  int length
           
private  int tag
           
private  int tagClass
           
private  java.lang.Object value
           
 
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
 
Constructor Summary
DERValue(int tag, int length, java.lang.Object value, byte[] encoded)
           
DERValue(int tag, java.lang.Object value)
           
 
Method Summary
 byte[] getEncoded()
           
 int getEncodedLength()
           
 int getExternalTag()
           
 int getLength()
           
 int getTag()
           
 int getTagClass()
           
 java.lang.Object getValue()
           
 java.lang.Object getValueAs(int derType)
           
 boolean isConstructed()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

DERValue

public DERValue(int tag,
                int length,
                java.lang.Object value,
                byte[] encoded)

DERValue

public DERValue(int tag,
                java.lang.Object value)
Method Detail

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()).