org.mozilla.jss.asn1
public class ASN1Util extends Object
| Method Summary | |
|---|---|
| static ASN1Value | decode(ASN1Template template, byte[] encoded) |
| static ASN1Value | decode(Tag implicitTag, ASN1Template template, byte[] encoded) |
| static byte[] | encode(ASN1Value val) |
| static byte[] | encode(Tag implicitTag, ASN1Value val) |
| static void | readFully(byte[] bytes, InputStream istream)
Fills a byte array with bytes from an input stream. |
Parameters: bytes A byte array which will be filled up. istream The input stream from which to read the bytes.
Throws: IOException If an IOException occurs reading from the stream, or EOF is reached before the byte array is filled.