Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for malformed (0.09 sec)

  1. src/main/java/jcifs/pac/kerberos/KerberosToken.java

                    throw new PACDecodingException("Malformed kerberos token");
                }
    
                ASN1TaggedObject mechToken = ASN1Util.as(ASN1TaggedObject.class, stream.readObject());
                if (mechToken == null || mechToken.getTagClass() != BERTags.APPLICATION
                        || !(mechToken.getBaseObject() instanceof ASN1Sequence)) {
                    throw new PACDecodingException("Malformed kerberos token");
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java

                new KerberosRelevantAuthData(malformedToken, keys);
            }, "A PACDecodingException should be thrown for a malformed token.");
    
            assertEquals("Malformed kerberos ticket", exception.getMessage(), "The exception message should indicate a malformed ticket.");
        }
    
        /**
         * Test constructor with an empty token.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/spnego/NegTokenInit.java

                    throw new IOException("Malformed SPNEGO token " + constructed);
                }
    
                final ASN1Sequence vec = (ASN1Sequence) constructed.getBaseObject();
    
                final ASN1ObjectIdentifier spnego = (ASN1ObjectIdentifier) vec.getObjectAt(0);
                if (!SPNEGO_OID.equals(spnego)) {
                    throw new IOException("Malformed SPNEGO token, OID " + spnego);
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/pac/kerberos/KerberosApRequest.java

                        throw new PACDecodingException("Malformed Kerberos Ticket");
                    }
                    try {
                        this.ticket = new KerberosTicket(derTicket.getBaseObject().getEncoded(), this.apOptions, keys);
                    } catch (IOException e) {
                        throw new PACDecodingException("Malformed Kerberos Ticket", e);
                    }
                    break;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/PacSignatureTest.java

        }
    
        /**
         * Test constructor with KERB_CHECKSUM_HMAC_MD5 type.
         *
         * @throws IOException if an I/O error occurs
         * @throws PACDecodingException if the PAC is malformed
         */
        @Test
        void testConstructorKerbChecksumHmacMd5() throws IOException, PACDecodingException {
            // Prepare data
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/spnego/NegTokenTargTest.java

        }
    
        @Test
        @DisplayName("parsing malformed token throws IOException")
        void testMalformedToken() {
            byte[] bad = new byte[] { 0x01, 0x02, 0x03 }; // not a valid ASN.1 tagged object
            assertThrows(IOException.class, () -> new NegTokenTarg(bad), "Malformed byte[] should cause IOException");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/Punycode.kt

              }
              else -> return false // Malformed.
            }
          }
          pos++ // Consume '-'.
        }
    
        var n = INITIAL_N
        var i = 0
        var bias = INITIAL_BIAS
    
        while (pos < limit) {
          val oldi = i
          var w = 1
          for (k in BASE until Int.MAX_VALUE step BASE) {
            if (pos == limit) return false // Malformed.
            val c = string[pos++]
            val digit =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/pac/kerberos/KerberosTokenTest.java

        void testConstructorWithEmptyToken() {
            byte[] emptyToken = new byte[0];
            assertThrows(PACDecodingException.class, () -> new KerberosToken(emptyToken));
        }
    
        /**
         * Test constructor with a malformed token (not ASN.1).
         */
        @Test
        void testConstructorWithMalformedToken() {
            byte[] malformedToken = "This is not a valid token".getBytes();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/pac/PacSignature.java

        private byte[] checksum;
    
        /**
         * Constructs a PacSignature by parsing the provided data.
         *
         * @param data the raw signature data to parse
         * @throws PACDecodingException if the data is malformed or cannot be parsed
         */
        public PacSignature(final byte[] data) throws PACDecodingException {
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/pac/Pac.java

         * @param data the raw PAC data bytes
         * @param keys map of Kerberos keys for signature validation
         * @throws PACDecodingException if the PAC data is malformed or signature validation fails
         */
        public Pac(byte[] data, Map<Integer, KerberosKey> keys) throws PACDecodingException {
            byte[] checksumData = data.clone();
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
Back to top