Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for LsaPolicyHandle (0.1 sec)

  1. src/main/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandle.java

     */
    public class LsaPolicyHandle extends rpc.policy_handle {
    
        DcerpcHandle handle;
    
        /**
         * Constructs an LSA policy handle.
         *
         * @param handle the DCERPC handle
         * @param server the server name
         * @param access the access rights
         * @throws IOException if an I/O error occurs
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/dcerpc/msrpc/LsaPolicyHandle.java

    import java.io.IOException;
    
    import jcifs.dcerpc.DcerpcHandle;
    import jcifs.dcerpc.rpc;
    import jcifs.smb.SmbException;
    
    /**
     * LSA policy handle for Local Security Authority operations.
     */
    public class LsaPolicyHandle extends rpc.policy_handle implements AutoCloseable {
    
        private final DcerpcHandle handle;
        private boolean opened;
    
        /**
         * Constructs an LSA policy handle.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/msrpc/MsrpcQueryInformationPolicyTest.java

        void multipleInstances_shouldBeIndependent() {
            // Arrange
            short level1 = 1;
            short level2 = 2;
            NdrObject mockNdrObject2 = mock(NdrObject.class);
            LsaPolicyHandle mockPolicyHandle2 = mock(LsaPolicyHandle.class);
    
            // Act
            MsrpcQueryInformationPolicy queryPolicy1 = new MsrpcQueryInformationPolicy(mockPolicyHandle, level1, mockNdrObject);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java

            // Arrange
            // First, successfully create an LsaPolicyHandle instance
            doAnswer(invocation -> {
                MsrpcLsarOpenPolicy2 rpc = invocation.getArgument(0);
                rpc.retval = 0;
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarOpenPolicy2.class));
    
            LsaPolicyHandle handle = new LsaPolicyHandle(mockDcerpcHandle, "server", 123);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java

            // Arrange
            // First, successfully create an LsaPolicyHandle instance
            doAnswer(invocation -> {
                MsrpcLsarOpenPolicy2 rpc = invocation.getArgument(0);
                rpc.retval = 0;
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarOpenPolicy2.class));
    
            LsaPolicyHandle handle = new LsaPolicyHandle(mockDcerpcHandle, "server", 123);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarOpenPolicy2Test.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    class MsrpcLsarOpenPolicy2Test {
    
        @Mock
        private LsaPolicyHandle mockPolicyHandle;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        void constructor_shouldInitializeFieldsCorrectly() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/dcerpc/msrpc/MsrpcLsarOpenPolicy2.java

         * @param access the desired access rights
         * @param policyHandle the policy handle to be populated
         */
        public MsrpcLsarOpenPolicy2(final String server, final int access, final LsaPolicyHandle policyHandle) {
            super(server, new lsarpc.LsarObjectAttributes(), access, policyHandle);
            this.object_attributes.length = 24;
            final lsarpc.LsarQosInfo qos = new lsarpc.LsarQosInfo();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/MsrpcQueryInformationPolicyTest.java

    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.dcerpc.DcerpcConstants;
    import jcifs.dcerpc.msrpc.LsaPolicyHandle;
    import jcifs.dcerpc.msrpc.MsrpcQueryInformationPolicy;
    import jcifs.dcerpc.ndr.NdrObject;
    
    @ExtendWith(MockitoExtension.class)
    class MsrpcQueryInformationPolicyTest {
    
        @Mock
        private LsaPolicyHandle mockPolicyHandle;
    
        @Mock
        private NdrObject mockNdrObject;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/dcerpc/msrpc/MsrpcLookupSids.java

        /**
         * Creates a new request to lookup SIDs.
         *
         * @param policyHandle the LSA policy handle
         * @param sids the array of SIDs to lookup
         */
        public MsrpcLookupSids(final LsaPolicyHandle policyHandle, final jcifs.SID[] sids) {
            super(policyHandle, new LsarSidArrayX(sids), new jcifs.dcerpc.msrpc.lsarpc.LsarRefDomainList(),
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/dcerpc/msrpc/MsrpcLsarClose.java

        /**
         * Creates a new request to close an LSA policy handle.
         *
         * @param policyHandle the policy handle to close
         */
        public MsrpcLsarClose(final LsaPolicyHandle policyHandle) {
            super(policyHandle);
            ptype = 0;
            flags = DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.5K bytes
    - Viewed (0)
Back to top