|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.FilterInputStream
|
+--iaik.utils.Base64InputStream
|
+--iaik.utils.ASN1InputStream
This Filter-InputStream can be used to read a lot of different formats for ASN.1 objects. The data which can be read from this stream is always binary DER encoded ASN.1!
The following formats have been tested:
0x30 0x82 0x03 0xE9 ...
MIIB2zCCAUQCBQC3xiKfMA0GCSqGSIb3DQEBBAUAMDUxCzAJBgNVBAYTAkFUMQ0w ... PZm5TIGAxUXR96AalaJwvG8wdk+l3t1BmMI6 MIIB2zCCAUQCBQC3xiKfMA0GCSqGSIb3DQEBBAUAMDUxCzAJBgNVBAYTAkFUMQ0w ... Sk03xc18zfv5DhZ8Vuz3Nk1qgi1mPq0krImanGtFtBszSSnmpNW08ujUTvGHhDk=
-----BEGIN CERTIFICATE----- MIIB9zCCAWACBEZWm84wDQYJKoZIhvcNAQEEBQAwNTELMAkGA1UEBhMCQVQxDTAL ... PZm5TIGAxUXR96AalaJwvG8wdk+l3t1BmMI6 -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIIB2zCCAUQCBQC3xiKfMA0GCSqGSIb3DQEBBAUAMDUxCzAJBgNVBAYTAkFUMQ0w ... Sk03xc18zfv5DhZ8Vuz3Nk1qgi1mPq0krImanGtFtBszSSnmpNW08ujUTvGHhDk= -----END CERTIFICATE-----
| Fields inherited from class iaik.utils.Base64InputStream |
decoding, ERROR, IGNORE, NOTIFY |
| Fields inherited from class java.io.FilterInputStream |
in |
| Constructor Summary | |
ASN1InputStream(InputStream is)
Creates a new ASN1InputStream to read data from the specified input stream. |
|
| Method Summary | |
int |
available()
Returns the number of bytes that can be read from this input stream without blocking. |
protected void |
notify(byte[] buffer)
Called by super class if a '-' shall be decoded. |
int |
read()
Reads the next byte of data from this input stream. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this input stream into an array of bytes. |
| Methods inherited from class iaik.utils.Base64InputStream |
setIgnoreInvalidCharacters |
| Methods inherited from class java.io.FilterInputStream |
close, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ASN1InputStream(InputStream is)
throws IOException
is - the underlying input streamIOException - if an I/O error occurs during reading from the stream| Method Detail |
protected void notify(byte[] buffer)
throws IOException
notify in class Base64InputStreamiaik.utils.Base64InputStreambuffer - the characters already read from the input stream; and the
first one was marked with NOTIFYIOException - allows the subclass to throw an Exception if an error occurs
public int read()
throws IOException
read in class Base64InputStreamIOException - if an I/O error occurs
public int read(byte[] b,
int off,
int len)
throws IOException
read in class Base64InputStreamb - the buffer into which the data is readoff - the start offset of the datalen - the maximum number of bytes readIOException - if an I/O error occurs
public int available()
throws IOException
available in class FilterInputStreamIOException - if an I/O error occurs
|
This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note). | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK