- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 32 for PACDecodingException (0.47 seconds)
-
src/main/java/jcifs/pac/PacDataInputStream.java
* @throws PACDecodingException if the string structure is malformed */ public PacUnicodeString readUnicodeString() throws IOException, PACDecodingException { final short length = readShort(); final short maxLength = readShort(); final int pointer = readInt(); if (maxLength < length) { throw new PACDecodingException("Malformed string in PAC"); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.9K bytes - Click Count (0) -
src/main/java/jcifs/pac/kerberos/KerberosPacAuthData.java
* * @param token the PAC token bytes * @param keys map of Kerberos keys indexed by key type * @throws PACDecodingException if PAC decoding fails */ public KerberosPacAuthData(byte[] token, Map<Integer, KerberosKey> keys) throws PACDecodingException { this.pac = new Pac(token, keys); } /** * Returns the PAC object. *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.6K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacMacTest.java
} /** * Test method for * {@link jcifs.pac.PacMac#calculateMac(int, java.util.Map, byte[])}. * * @throws PACDecodingException */ @Test void testCalculateMac() throws PACDecodingException { Map<Integer, KerberosKey> keys = new HashMap<>(); KerberosKey hmacKey = new KerberosKey(TEST_PRINCIPAL, new byte[16], PacSignature.ETYPE_ARCFOUR_HMAC, 0);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 7.1K bytes - Click Count (0) -
src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java
import org.bouncycastle.asn1.DERTaggedObject; import org.junit.jupiter.api.Test; import jcifs.pac.PACDecodingException; /** * Tests for KerberosEncData. */ class KerberosEncDataTest { /** * Test constructor with a valid token. * * @throws IOException if an I/O error occurs * @throws PACDecodingException if a PAC decoding error occurs * @throws UnknownHostException if the IP address is not foundCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.7K bytes - Click Count (0) -
src/main/java/jcifs/pac/PacCredentialType.java
* @param data the raw credential type data * @throws PACDecodingException if the credential type data is invalid */ public PacCredentialType(final byte[] data) throws PACDecodingException { this.credentialType = data; if (!isCredentialTypeCorrect()) { throw new PACDecodingException("Invalid PAC credential type"); } } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.7K bytes - Click Count (0) -
src/main/java/jcifs/pac/PacUnicodeString.java
* * @param string the string to validate * @return the validated string * @throws PACDecodingException if validation fails */ public String check(final String string) throws PACDecodingException { if (this.pointer == 0 && string != null) { throw new PACDecodingException("Non-empty string"); } final int expected = this.length / 2;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.9K bytes - Click Count (0) -
src/main/java/jcifs/pac/kerberos/KerberosRelevantAuthData.java
* * @param token the authorization data token * @param keys map of Kerberos keys indexed by key type * @throws PACDecodingException if decoding fails */ public KerberosRelevantAuthData(byte[] token, Map<Integer, KerberosKey> keys) throws PACDecodingException { ASN1Sequence authSequence; try { try (ASN1InputStream stream = new ASN1InputStream(new ByteArrayInputStream(token))) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3K bytes - Click Count (0) -
src/main/java/jcifs/pac/kerberos/KerberosEncData.java
* * @param token the encrypted Kerberos token * @param keys map of encryption keys indexed by key type * @throws PACDecodingException if decoding fails */ public KerberosEncData(byte[] token, Map<Integer, KerberosKey> keys) throws PACDecodingException { ASN1InputStream stream = new ASN1InputStream(new ByteArrayInputStream(token)); ASN1TaggedObject derToken; try {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 12.5K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacLogonInfoTest.java
} @Test @DisplayName("Test parsing with invalid data size") void testInvalidDataSize() { byte[] tooSmall = new byte[10]; PACDecodingException exception = assertThrows(PACDecodingException.class, () -> new PacLogonInfo(tooSmall)); assertEquals("Malformed PAC", exception.getMessage()); } @Test @DisplayName("Test getters return expected values using mocks")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.3K bytes - Click Count (0) -
src/main/java/jcifs/pac/PacSignature.java
/** * 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 { final PacDataInputStream bufferStream = new PacDataInputStream(new DataInputStream(new ByteArrayInputStream(data)));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.4K bytes - Click Count (0)