/** * {@inheritDoc} * * @see jcifs.Configuration#isUseUnicode() */ @Override public boolean isUseUnicode () { return this.delegate.isUseUnicode(); }
/** * {@inheritDoc} * * @see jcifs.Configuration#isUseUnicode() */ @Override public boolean isUseUnicode () { return this.delegate.isUseUnicode(); }
/** * Returns the default flags for a generic Type-2 message in the * current environment. * * @param tc * context to use * @return An <code>int</code> containing the default flags. */ public static int getDefaultFlags ( CIFSContext tc ) { return NTLMSSP_NEGOTIATE_NTLM | NTLMSSP_NEGOTIATE_VERSION | ( tc.getConfig().isUseUnicode() ? NTLMSSP_NEGOTIATE_UNICODE : NTLMSSP_NEGOTIATE_OEM ); }
/** * Returns the default flags for a generic Type-3 message in the * current environment. * * @param tc * context to use * @return An <code>int</code> containing the default flags. */ public static int getDefaultFlags ( CIFSContext tc ) { return NTLMSSP_NEGOTIATE_NTLM | NTLMSSP_NEGOTIATE_VERSION | ( tc.getConfig().isUseUnicode() ? NTLMSSP_NEGOTIATE_UNICODE : NTLMSSP_NEGOTIATE_OEM ); }
/** * Returns the default flags for a generic Type-1 message in the * current environment. * * @param tc * context to use * @return An <code>int</code> containing the default flags. */ public static int getDefaultFlags ( CIFSContext tc ) { return NTLMSSP_NEGOTIATE_NTLM | NTLMSSP_NEGOTIATE_VERSION | ( tc.getConfig().isUseUnicode() ? NTLMSSP_NEGOTIATE_UNICODE : NTLMSSP_NEGOTIATE_OEM ); }
/** * Returns the default flags for a generic Type-1 message in the * current environment. * * @param tc * context to use * @return An <code>int</code> containing the default flags. */ public static int getDefaultFlags ( CIFSContext tc ) { return NTLMSSP_NEGOTIATE_NTLM | NTLMSSP_NEGOTIATE_VERSION | ( tc.getConfig().isUseUnicode() ? NTLMSSP_NEGOTIATE_UNICODE : NTLMSSP_NEGOTIATE_OEM ); }
/** * Returns the default flags for a generic Type-3 message in the * current environment. * * @param tc * context to use * @return An <code>int</code> containing the default flags. */ public static int getDefaultFlags ( CIFSContext tc ) { return NTLMSSP_NEGOTIATE_NTLM | NTLMSSP_NEGOTIATE_VERSION | ( tc.getConfig().isUseUnicode() ? NTLMSSP_NEGOTIATE_UNICODE : NTLMSSP_NEGOTIATE_OEM ); }
/** * Returns the default flags for a generic Type-2 message in the * current environment. * * @param tc * context to use * @return An <code>int</code> containing the default flags. */ public static int getDefaultFlags ( CIFSContext tc ) { return NTLMSSP_NEGOTIATE_NTLM | NTLMSSP_NEGOTIATE_VERSION | ( tc.getConfig().isUseUnicode() ? NTLMSSP_NEGOTIATE_UNICODE : NTLMSSP_NEGOTIATE_OEM ); }
this.capabilities |= SmbConstants.CAP_EXTENDED_SECURITY; // & doesn't copy high bit if ( ctx.getConfig().isUseUnicode() || ctx.getConfig().isForceUnicode() ) { this.capabilities |= SmbConstants.CAP_UNICODE; this.useUnicode = ctx.getConfig().isUseUnicode();
this.capabilities |= SmbConstants.CAP_EXTENDED_SECURITY; // & doesn't copy high bit if ( ctx.getConfig().isUseUnicode() || ctx.getConfig().isForceUnicode() ) { this.capabilities |= SmbConstants.CAP_UNICODE; this.useUnicode = ctx.getConfig().isUseUnicode();
/** * * @param ctx */ public SmbComNegotiateResponse ( CIFSContext ctx ) { super(ctx.getConfig()); this.server = new ServerData(); this.capabilities = ctx.getConfig().getCapabilities(); this.negotiatedFlags2 = ctx.getConfig().getFlags2(); this.maxMpxCount = ctx.getConfig().getMaxMpxCount(); this.snd_buf_size = ctx.getConfig().getSendBufferSize(); this.recv_buf_size = ctx.getConfig().getReceiveBufferSize(); this.tx_buf_size = ctx.getConfig().getTransactionBufferSize(); this.useUnicode = ctx.getConfig().isUseUnicode(); }
/** * * @param ctx */ public SmbComNegotiateResponse ( CIFSContext ctx ) { super(ctx.getConfig()); this.server = new ServerData(); this.capabilities = ctx.getConfig().getCapabilities(); this.negotiatedFlags2 = ctx.getConfig().getFlags2(); this.maxMpxCount = ctx.getConfig().getMaxMpxCount(); this.snd_buf_size = ctx.getConfig().getSendBufferSize(); this.recv_buf_size = ctx.getConfig().getReceiveBufferSize(); this.tx_buf_size = ctx.getConfig().getTransactionBufferSize(); this.useUnicode = ctx.getConfig().isUseUnicode(); }