- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 42 for PAC (0.01 seconds)
-
src/main/java/jcifs/pac/PacConstants.java
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.pac; /** * Constants for PAC (Privilege Attribute Certificate) data structures. * Defines buffer types and other constants used in PAC parsing and validation. */ public interface PacConstants { /** * PAC structure version number. */ int PAC_VERSION = 0; /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.4K bytes - Click Count (0) -
src/test/java/jcifs/pac/kerberos/KerberosAuthDataTest.java
byte[] invalidToken = "invalid-pac-token".getBytes(); // WHEN parsing the auth data // THEN a PACDecodingException should be thrown assertThrows(PACDecodingException.class, () -> { KerberosAuthData.parse(KerberosConstants.AUTH_DATA_PAC, invalidToken, mockKeys); }, "Parsing an invalid PAC token should throw a PACDecodingException."); } /**
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.7K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacCredentialTypeTest.java
assertEquals("Invalid PAC credential type", exception.getMessage()); } /** * Tests the isCredentialTypeCorrect method with a valid byte array. * * @throws PACDecodingException if the PAC decoding fails. */ @Test void testIsCredentialTypeCorrectWithValidData() throws PACDecodingException {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.9K bytes - Click Count (0) -
src/main/java/jcifs/pac/PacSignature.java
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.pac; import java.io.ByteArrayInputStream; import java.io.DataInputStream; import java.io.IOException; /** * Represents a PAC signature structure containing checksum type and data. * This class parses and holds signature information from Kerberos PAC data, * supporting various checksum algorithms including HMAC-MD5 and HMAC-SHA1 with AES. */
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) -
src/test/java/jcifs/pac/PacSignatureTest.java
package jcifs.pac; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.ByteOrder; import org.junit.jupiter.api.Test; /** * Tests for the PacSignature class. */ class PacSignatureTest {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.3K bytes - Click Count (0) -
src/main/java/jcifs/pac/PacDataInputStream.java
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.pac; import java.io.DataInputStream; import java.io.IOException; import java.io.InputStream; import java.math.BigInteger; import java.util.Date; import jcifs.SmbConstants; import jcifs.smb.SID; /** * Input stream for reading PAC data structures with proper alignment and byte ordering.
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/PacCredentialType.java
*/ package jcifs.pac; /** * Structure representing the PAC_CREDENTIAL_TYPE record * * @author jbbugeau */ public class PacCredentialType { private static final int MINIMAL_BUFFER_SIZE = 32; private final byte[] credentialType; /** * Constructs a PAC credential type from raw data. * @param data the raw credential type dataCreated: 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/test/java/jcifs/pac/PacLogonInfoTest.java
assertEquals("Malformed PAC", exception.getMessage()); } @Test @DisplayName("Test getters return expected values using mocks") void testGetters() throws Exception { // Use mocking to test getters without complex PAC data creation PacLogonInfo logonInfo = mock(PacLogonInfo.class); // Setup mock responsesCreated: 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/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/PacMac.java
* License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.pac; import java.nio.charset.StandardCharsets; import java.security.GeneralSecurityException; import java.security.Key; import java.security.MessageDigest; import java.util.Arrays; import java.util.Map;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 9K bytes - Click Count (0)