Lines Matching defs:is

5  * This code is free software; you can redistribute it and/or modify it
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
72 * the data read from the input stream <code>is</code>.
74 * @param is an input stream with the certificate data.
81 public Certificate engineGenerateCertificate(InputStream is)
84 if (is == null) {
91 byte[] encoding = readOneBlock(is);
131 * If the given X509Certificate or X509CertImpl is already present
132 * in the cert cache, the cached object is returned. Otherwise,
133 * if it is a X509Certificate, it is first converted to a X509CertImpl.
134 * Then the X509CertImpl is added to the cache and returned.
138 * It is useful for certificates that cannot be created via
223 * is assumed to be in the default encoding.
252 * is assumed to be in the specified encoding.
259 * the encoding requested is not supported
319 * from the given input stream <code>is</code>.
321 * @param is the input stream with the certificates.
329 engineGenerateCertificates(InputStream is)
331 if (is == null) {
335 return parseX509orPKCS7Cert(is);
344 * <code>is</code>.
346 * @param is an input stream with the CRL data.
353 public CRL engineGenerateCRL(InputStream is)
356 if (is == null) {
362 byte[] encoding = readOneBlock(is);
381 * from the given input stream <code>is</code>.
383 * @param is the input stream with the CRLs.
391 InputStream is) throws CRLException
393 if (is == null) {
397 return parseX509orPKCS7CRL(is);
409 parseX509orPKCS7Cert(InputStream is)
413 byte[] data = readOneBlock(is);
430 data = readOneBlock(is);
442 parseX509orPKCS7CRL(InputStream is)
446 byte[] data = readOneBlock(is);
463 data = readOneBlock(is);
474 * After the reading, the input stream pointer is after the BER block, or
477 * @param is the InputStream
481 private static byte[] readOneBlock(InputStream is) throws IOException {
484 int c = is.read();
491 readBERInternal(is, bout, c);
498 // Step 1: Read until header is found
502 int next = is.read();
523 int next = is.read();
532 next = is.read();
549 int next = is.read();
566 int next = is.read();
568 // is not consistent.
601 * Read one BER data block. This method is aware of indefinite-length BER
604 * @param is Read from this InputStream
610 private static int readBERInternal(InputStream is,
614 tag = is.read();
624 int n = is.read();
638 int subTag = readBERInternal(is, bout, -1);
647 length = is.read();
653 int highByte = is.read();
654 int lowByte = is.read();
662 int highByte = is.read();
663 int midByte = is.read();
664 int lowByte = is.read();
673 int highByte = is.read();
674 int nextByte = is.read();
675 int midByte = is.read();
676 int lowByte = is.read();
692 if (readFully(is, bout, length) != length) {