Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for instanceOf (0.28 sec)

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

                CacheEntry<Map<String, CacheEntry<DfsReferralDataInternal>>> entry = new CacheEntry<>(tf.getConfig().getDfsTtl() * 10L);
                this._domains = entry;
                if ( tf.getConfig().isDfsStrictView() && ioe instanceof SmbAuthException ) {
                    throw (SmbAuthException) ioe;
                }
                return this._domains.map;
            }
            return null;
        }
    
    
        /**
         * 
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:07:29 GMT 2023
    - 29.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

                    primaryDomain = auth.domain.toUpperCase();
                } else if (cred instanceof byte[]) {
                    blob = (byte[])cred;
                } else {
                    throw new SmbException("Unsupported credential type");
                }
            } else if (session.transport.server.security == SECURITY_SHARE) {
                if (cred instanceof NtlmPasswordAuthentication) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/netbios/UniAddress.java

         */
        @Override
        public InetAddress toInetAddress () throws UnknownHostException {
            if ( this.addr instanceof Address ) {
                return ( (Address) this.addr ).toInetAddress();
            }
            else if ( this.addr instanceof InetAddress ) {
                return (InetAddress) this.addr;
            }
            return null;
        }
    
    
        /**
         * {@inheritDoc}
         *
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

         * @see jcifs.internal.SmbNegotiationResponse#setupRequest(jcifs.internal.CommonServerMessageBlock)
         */
        @Override
        public void setupRequest ( CommonServerMessageBlock request ) {
    
            if ( ! ( request instanceof ServerMessageBlock ) ) {
                return;
            }
    
            ServerMessageBlock req = (ServerMessageBlock) request;
    
            req.addFlags2(this.negotiatedFlags2);
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Tue Jul 07 10:52:42 GMT 2020
    - 15.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SpnegoContext.java

    
        private SpnegoToken negotitate ( byte[] inputBuf, int offset, int len ) throws CIFSException {
            SpnegoToken spToken = getToken(inputBuf, offset, len);
            byte[] inputToken = null;
            if ( spToken instanceof NegTokenInit ) {
                NegTokenInit tinit = (NegTokenInit) spToken;
                ASN1ObjectIdentifier[] rm = tinit.getMechanisms();
                this.remoteMechs = rm;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Jan 04 04:18:31 GMT 2021
    - 14.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/UniAddress.java

         * if they are both <tt>UniAddress</tt>' and refer to the same IP address.
         */
        public boolean equals( Object obj ) {
            return obj instanceof UniAddress && addr.equals(((UniAddress)obj).addr);
        }
    /*
        public boolean equals( Object obj ) {
            return obj instanceof UniAddress && addr.hashCode() == obj.hashCode();
        }
    */
    
        /**
         * Guess first called name to try for session establishment. This
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 16.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/SessionTest.java

         * @param f2
         * @throws CIFSException
         */
        private static void connectionMatches ( SmbResource f1, SmbResource f2 ) throws CIFSException {
            Assert.assertTrue(f1 instanceof SmbFile);
            Assert.assertTrue(f2 instanceof SmbFile);
            try ( SmbTreeHandleInternal th1 = (SmbTreeHandleInternal) ( (SmbFile) f1 ).getTreeHandle();
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 15.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbEnumerationUtil.java

            }
        }
    
    
        private static DosFileFilter unwrapDOSFilter ( ResourceFilter ff ) {
            if ( ff instanceof ResourceFilterWrapper ) {
                SmbFileFilter sff = ( (ResourceFilterWrapper) ff ).getFileFilter();
                if ( sff instanceof DosFileFilter ) {
                    return (DosFileFilter) sff;
                }
            }
            return null;
        }
    
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sat Jul 20 08:41:19 GMT 2019
    - 12.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java

                } catch( SmbAuthException sae ) {
                    throw sae;
                } catch( SmbException se ) {
                    fp = 0L;
                }
            }
            if( file instanceof SmbNamedPipe && file.unc.startsWith( "\\pipe\\" )) {
                file.unc = file.unc.substring( 5 );
                file.send( new TransWaitNamedPipe( "\\pipe" + file.unc ),
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 9.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/transport/Transport.java

                        }
                    }
                }
                catch ( Exception ex ) {
                    String msg = ex.getMessage();
                    boolean timeout = ( ex instanceof SocketTimeoutException ) || msg != null && msg.equals("Read timed out");
                    boolean closed = msg != null && msg.equals("Socket closed");
    
                    if ( closed ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Nov 01 18:12:21 GMT 2020
    - 24.1K bytes
    - Viewed (0)
Back to top