ch.ethz.ssh2.crypto
Class SimpleDERReader

java.lang.Object
  extended bych.ethz.ssh2.crypto.SimpleDERReader

public class SimpleDERReader
extends java.lang.Object

SimpleDERReader.

Version:
$Id: SimpleDERReader.java,v 1.3 2006/08/11 12:24:00 cplattne Exp $
Author:
Christian Plattner, plattner@inf.ethz.ch

Field Summary
(package private)  byte[] buffer
           
(package private)  int count
           
(package private)  int pos
           
 
Constructor Summary
SimpleDERReader(byte[] b)
           
SimpleDERReader(byte[] b, int off, int len)
           
 
Method Summary
 int available()
           
 int ignoreNextObject()
           
private  byte readByte()
           
private  byte[] readBytes(int len)
           
 java.math.BigInteger readInt()
           
private  int readLength()
           
 byte[] readOctetString()
           
 byte[] readSequenceAsByteArray()
           
 void resetInput(byte[] b)
           
 void resetInput(byte[] b, int off, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

byte[] buffer

pos

int pos

count

int count
Constructor Detail

SimpleDERReader

public SimpleDERReader(byte[] b)

SimpleDERReader

public SimpleDERReader(byte[] b,
                       int off,
                       int len)
Method Detail

resetInput

public void resetInput(byte[] b)

resetInput

public void resetInput(byte[] b,
                       int off,
                       int len)

readByte

private byte readByte()
               throws java.io.IOException
Throws:
java.io.IOException

readBytes

private byte[] readBytes(int len)
                  throws java.io.IOException
Throws:
java.io.IOException

available

public int available()

readLength

private int readLength()
                throws java.io.IOException
Throws:
java.io.IOException

ignoreNextObject

public int ignoreNextObject()
                     throws java.io.IOException
Throws:
java.io.IOException

readInt

public java.math.BigInteger readInt()
                             throws java.io.IOException
Throws:
java.io.IOException

readSequenceAsByteArray

public byte[] readSequenceAsByteArray()
                               throws java.io.IOException
Throws:
java.io.IOException

readOctetString

public byte[] readOctetString()
                       throws java.io.IOException
Throws:
java.io.IOException