/** * {@inheritDoc} * * @see jcifs.CIFSContext#hasDefaultCredentials() */ @Override public boolean hasDefaultCredentials () { return this.getDefaultCredentials() != null && !this.getDefaultCredentials().isAnonymous(); }
/** * {@inheritDoc} * * @see jcifs.CIFSContext#hasDefaultCredentials() */ @Override public boolean hasDefaultCredentials () { return this.getDefaultCredentials() != null && !this.getDefaultCredentials().isAnonymous(); }
/** * * {@inheritDoc} * * @see jcifs.smb.SmbResourceLocatorInternal#shouldForceSigning() */ @Override public boolean shouldForceSigning () { return this.ctx.getConfig().isIpcSigningEnforced() && !this.ctx.getCredentials().isAnonymous() && isIPC(); }
/** * * {@inheritDoc} * * @see jcifs.smb.SmbResourceLocatorInternal#shouldForceSigning() */ @Override public boolean shouldForceSigning () { return this.ctx.getConfig().isIpcSigningEnforced() && !this.ctx.getCredentials().isAnonymous() && isIPC(); }
0, false, !tf.getCredentials().isAnonymous() && tf.getConfig().isSigningEnabled() && tf.getConfig().isIpcSigningEnforced()) .unwrap(SmbTransportImpl.class); transport.ensureConnected();
@Override public byte[] getChallenge ( CIFSContext tf, Address dc, int port ) throws SmbException { try ( SmbTransportInternal trans = tf.getTransportPool() .getSmbTransport(tf, dc, port, false, !tf.getCredentials().isAnonymous() && tf.getConfig().isIpcSigningEnforced()) .unwrap(SmbTransportInternal.class) ) { trans.ensureConnected(); return trans.getServerEncryptionKey(); } catch ( SmbException e ) { throw e; } catch ( IOException e ) { throw new SmbException("Connection failed", e); } }
0, false, !tf.getCredentials().isAnonymous() && tf.getConfig().isSigningEnabled() && tf.getConfig().isIpcSigningEnforced()) .unwrap(SmbTransportImpl.class); transport.ensureConnected();
@Override public byte[] getChallenge ( CIFSContext tf, Address dc, int port ) throws SmbException { try ( SmbTransportInternal trans = tf.getTransportPool() .getSmbTransport(tf, dc, port, false, !tf.getCredentials().isAnonymous() && tf.getConfig().isIpcSigningEnforced()) .unwrap(SmbTransportInternal.class) ) { trans.ensureConnected(); return trans.getServerEncryptionKey(); } catch ( SmbException e ) { throw e; } catch ( IOException e ) { throw new SmbException("Connection failed", e); } }