Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for readUnparsedTagged (0.5 sec)

  1. src/test/java/jcifs/pac/ASN1UtilTest.java

            assertThrows(StackOverflowError.class, () -> {
                ASN1Util.as(ASN1Integer.class, sequence, 0);
            }, "Should throw StackOverflowError due to recursive call");
        }
    
        // --- readUnparsedTagged ---
    
        @Test
        void testReadUnparsedTagged_Success() throws IOException {
            // Tag [1] IMPLICIT, content is 0x01 0x02 0x03
            byte[] data = new byte[] { (byte) 0xA1, 0x03, 0x01, 0x02, 0x03 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/kerberos/KerberosToken.java

                throw new PACDecodingException("Empty kerberos token");
            }
    
            byte[] content;
            try (ASN1InputStream stream = new ASN1InputStream(token)) {
                content = ASN1Util.readUnparsedTagged(0, 0x8000, stream);
            } catch (IOException e) {
                throw new PACDecodingException("Malformed kerberos token", e);
            }
    
            try (ASN1InputStream stream = new ASN1InputStream(content)) {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/pac/ASN1Util.java

         * @param in the ASN.1 input stream
         * @return coded bytes of the tagged object
         * @throws IOException if reading fails or tag mismatch
         */
        public static byte[] readUnparsedTagged(final int expectTag, final int limit, final ASN1InputStream in) throws IOException {
            final int ftag = in.read();
            final int tag = readTagNumber(in, ftag);
            if (tag != expectTag) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.2K bytes
    - Viewed (0)
Back to top