Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 42 for Pac (0.42 seconds)

  1. src/main/java/jcifs/pac/Pac.java

            }
        }
    
        /**
         * Returns the PAC logon information containing user authorization data.
         * @return the PAC logon information
         */
        public PacLogonInfo getLogonInfo() {
            return this.logonInfo;
        }
    
        /**
         * Returns the PAC credential type information.
         * @return the PAC credential type
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  2. src/test/java/jcifs/pac/kerberos/KerberosPacAuthDataTest.java

    import org.mockito.Mockito;
    
    import jcifs.pac.PACDecodingException;
    import jcifs.pac.Pac;
    import jcifs.pac.PacConstants;
    import jcifs.pac.PacLogonInfo;
    import jcifs.pac.PacSignature;
    
    class KerberosPacAuthDataTest {
    
        private Map<Integer, KerberosKey> keys;
    
        @BeforeEach
        void setUp() {
            keys = new HashMap<>();
        }
    
        // Test successful PAC creation with mocked Pac construction
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  3. src/test/java/jcifs/pac/PacTest.java

                // This will likely fail on PacLogonInfo parsing, but at least tests the basic structure
                try {
                    Pac pac = new Pac(pacData, keys);
                    assertNotNull(pac.getServerSignature());
                    assertNotNull(pac.getKdcSignature());
                } catch (PACDecodingException e) {
                    // Expected due to invalid logon info structure
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  4. src/main/java/jcifs/pac/kerberos/KerberosPacAuthData.java

     */
    package jcifs.pac.kerberos;
    
    import java.util.Map;
    
    import javax.security.auth.kerberos.KerberosKey;
    
    import jcifs.pac.PACDecodingException;
    import jcifs.pac.Pac;
    
    /**
     * Kerberos authorization data containing PAC (Privilege Attribute Certificate) information.
     */
    public class KerberosPacAuthData extends KerberosAuthData {
    
        private Pac pac;
    
        /**
    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)
  5. src/main/java/jcifs/pac/PacSidAttributes.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.pac;
    
    import jcifs.smb.SID;
    
    /**
     * Represents a Security Identifier (SID) with associated attributes within a PAC structure.
     * This class encapsulates a SID and its attribute flags as used in Kerberos PAC data.
     */
    public class PacSidAttributes {
    
        private final SID id;
        private final int attributes;
    
    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)
  6. src/test/java/jcifs/pac/PacConstantsTest.java

         */
        @Test
        void testConstantValues() {
            // Verify the PAC version
            assertEquals(0, PacConstants.PAC_VERSION, "PAC_VERSION should be 0");
    
            // Verify PAC buffer types
            assertEquals(1, PacConstants.LOGON_INFO, "LOGON_INFO should be 1");
            assertEquals(2, PacConstants.CREDENTIAL_TYPE, "CREDENTIAL_TYPE should be 2");
            assertEquals(6, PacConstants.SERVER_CHECKSUM, "SERVER_CHECKSUM should be 6");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2K bytes
    - Click Count (0)
  7. src/main/java/jcifs/pac/PACDecodingException.java

     */
    package jcifs.pac;
    
    import jcifs.CIFSException;
    
    /**
     * Exception thrown when PAC (Privilege Attribute Certificate) data cannot be decoded.
     * Indicates malformed or invalid PAC structures in Kerberos tickets.
     */
    public class PACDecodingException extends CIFSException {
    
        private static final long serialVersionUID = 1L;
    
        /**
         * Constructs a new PAC decoding exception with no detail message.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2K bytes
    - Click Count (1)
  8. src/main/java/jcifs/pac/PacLogonInfo.java

        private SID[] resourceGroupSids;
        private SID[] extraSids;
        private int userAccountControl;
        private int userFlags;
    
        /**
         * Constructs a PAC logon information object from raw PAC data.
         * @param data the raw PAC logon info buffer data
         * @throws PACDecodingException if the data is malformed or invalid
         */
        public PacLogonInfo(final byte[] data) throws PACDecodingException {
            try {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 14.3K bytes
    - Click Count (0)
  9. src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java

    package jcifs.pac.kerberos;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.ArgumentMatchers.any;
    import static org.mockito.ArgumentMatchers.anyInt;
    import static org.mockito.ArgumentMatchers.eq;
    import static org.mockito.Mockito.mock;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9K bytes
    - Click Count (0)
  10. src/main/java/jcifs/pac/PacGroup.java

     */
    package jcifs.pac;
    
    import jcifs.smb.SID;
    
    /**
     * Represents a group membership entry in PAC logon information.
     * Contains a group SID and associated attributes.
     */
    public class PacGroup {
    
        private final SID id;
        private final int attributes;
    
        /**
         * Constructs a PAC group entry.
         * @param id the group's Security Identifier (SID)
    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)
Back to Top