Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 150 for SmbException (0.13 sec)

  1. src/main/java/jcifs/smb/SmbFileHandleImpl.java

        /**
         * @return the fid
         * @throws SmbException
         */
        public int getFid() throws SmbException {
            if (!isValid()) {
                throw new SmbException("Descriptor is no longer valid");
            }
            return this.fid;
        }
    
        public byte[] getFileId() throws SmbException {
            if (!isValid()) {
                throw new SmbException("Descriptor is no longer valid");
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
  2. src/main/java/jcifs/smb/SmbTreeConnection.java

         * @param loc
         * @return tree handle
         * @throws SmbException
         */
        public SmbTreeHandleImpl connectWrapException(final SmbResourceLocatorImpl loc) throws SmbException {
            try {
                return connect(loc);
            } catch (final SmbException se) {
                throw se;
            } catch (final IOException ioe) {
                throw new SmbException("Failed to connect to server", ioe);
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SigningDigest.java

         *
         * @param macSigningKey the MAC signing key for message authentication
         * @param bypass whether to bypass MAC signing
         * @throws SmbException if MD5 algorithm is not available
         */
        public SigningDigest(final byte[] macSigningKey, final boolean bypass) throws SmbException {
            try {
                digest = MessageDigest.getInstance("MD5");
            } catch (final NoSuchAlgorithmException ex) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java

                rpc.retval = errorCode; // Simulate RPC error
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarOpenPolicy2.class));
    
            // Act & Assert
            SmbException thrown = assertThrows(SmbException.class, () -> {
                new LsaPolicyHandle(mockDcerpcHandle, server, access);
            });
    
            // In smb1, non-NTSTATUS error codes get mapped to NT_STATUS_UNSUCCESSFUL (0xC0000001)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/NtlmContext.java

         * @param offset offset into the token array
         * @param len length of token data
         * @return the output token bytes
         * @throws SmbException if an error occurs during context initialization
         */
        public byte[] initSecContext(byte[] token, final int offset, final int len) throws SmbException {
            switch (state) {
            case 1:
                final Type1Message msg1 = new Type1Message(ntlmsspFlags, auth.getDomain(), workstation);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/msrpc/SamrAliasHandle.java

     */
    
    package jcifs.smb1.dcerpc.msrpc;
    
    import java.io.IOException;
    
    import jcifs.smb1.dcerpc.DcerpcHandle;
    import jcifs.smb1.dcerpc.rpc;
    import jcifs.smb1.smb1.SmbException;
    
    /**
     * Handle for Security Account Manager (SAM) alias operations.
     * This class represents an open handle to a SAM alias and provides
     * operations for managing alias membership and properties.
     */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java

            final String p = loc.getURL().getPath();
            if (p.lastIndexOf('/') != p.length() - 1) {
                throw new SmbException(loc.getURL() + " directory must end with '/'");
            }
            if (unc.lastIndexOf('\\') != unc.length() - 1) {
                throw new SmbException(unc + " UNC must end with '\\'");
            }
    
            final SmbTreeHandleImpl th = getTreeHandle();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/NtlmContext.java

        }
    
        @Override
        public byte[] initSecContext(final byte[] token, final int offset, final int len) throws SmbException {
            return switch (this.state) {
            case 1 -> makeNegotiate(token);
            case 2 -> makeAuthenticate(token);
            default -> throw new SmbException("Invalid state");
            };
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

                when(mockTree.isSMB2()).thenReturn(false);
                when(mockFile.getType()).thenReturn(SmbConstants.TYPE_NAMED_PIPE);
    
                // th.send(request, response, ...) throws SmbException with NT_STATUS_PIPE_BROKEN
                doThrow(new SmbException(NtStatus.NT_STATUS_PIPE_BROKEN, false)).when(mockTree)
                        .send(any(jcifs.internal.CommonServerMessageBlockRequest.class),
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java

         * @throws SmbException if an SMB protocol error occurs
         * @throws GeneralSecurityException if a security error occurs during authentication
         */
        public SmbComSessionSetupAndX(final CIFSContext tc, final SmbComNegotiateResponse negotiated, final ServerMessageBlock andx,
                final Object cred) throws SmbException, GeneralSecurityException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top