/** * This must be called before <tt>getInstance</tt> is called or * it will have no effect. */ public static void setInstance( PrintStream stream ) { inst = new LogStream( stream ); } public static LogStream getInstance() {
public NtlmContext(NtlmPasswordAuthentication auth, boolean doSigning) { this.auth = auth; this.ntlmsspFlags = ntlmsspFlags | NtlmFlags.NTLMSSP_REQUEST_TARGET | NtlmFlags.NTLMSSP_NEGOTIATE_NTLM2 | NtlmFlags.NTLMSSP_NEGOTIATE_128; if (doSigning) { this.ntlmsspFlags |= NtlmFlags.NTLMSSP_NEGOTIATE_SIGN | NtlmFlags.NTLMSSP_NEGOTIATE_ALWAYS_SIGN | NtlmFlags.NTLMSSP_NEGOTIATE_KEY_EXCH; } this.workstation = Type1Message.getDefaultWorkstation(); log = LogStream.getInstance(); }
public int available() throws IOException { if( file.log.level >= 3 ) file.log.println( "Named Pipe available() does not apply to TRANSACT Named Pipes" ); return 0; } int receive( byte[] b, int off, int len ) {
LogStream.setLevel( level );
public static LogStream getInstance() { if( inst == null ) { setInstance( System.err ); } return inst; } }
public int available() throws IOException { if( file.log.level >= 3 ) file.log.println( "Named Pipe available() does not apply to TRANSACT Named Pipes" ); return 0; } int receive( byte[] b, int off, int len ) {
LogStream.setLevel( level );
public static LogStream getInstance() { if( inst == null ) { setInstance( System.err ); } return inst; } }
public int available() throws IOException { if( file.log.level >= 3 ) file.log.println( "Named Pipe available() does not apply to TRANSACT Named Pipes" ); return 0; } int receive( byte[] b, int off, int len ) {
LogStream.setLevel( level );
/** * This must be called before <tt>getInstance</tt> is called or * it will have no effect. */ public static void setInstance( PrintStream stream ) { inst = new LogStream( stream ); } public static LogStream getInstance() {
public static LogStream getInstance() { if( inst == null ) { setInstance( System.err ); } return inst; } }
public NtlmContext(NtlmPasswordAuthentication auth, boolean doSigning) { this.auth = auth; this.ntlmsspFlags = ntlmsspFlags | NtlmFlags.NTLMSSP_REQUEST_TARGET | NtlmFlags.NTLMSSP_NEGOTIATE_NTLM2 | NtlmFlags.NTLMSSP_NEGOTIATE_128; if (doSigning) { this.ntlmsspFlags |= NtlmFlags.NTLMSSP_NEGOTIATE_SIGN | NtlmFlags.NTLMSSP_NEGOTIATE_ALWAYS_SIGN | NtlmFlags.NTLMSSP_NEGOTIATE_KEY_EXCH; } this.workstation = Type1Message.getDefaultWorkstation(); log = LogStream.getInstance(); }
int writeDataWireFormat( byte[] dst, int dstIndex ) { if(( dst.length - dstIndex ) < pipeDataLen ) { if( log.level >= 3 ) log.println( "TransTransactNamedPipe data too long for buffer" ); return 0; } System.arraycopy( pipeData, pipeDataOff, dst, dstIndex, pipeDataLen ); return pipeDataLen; } int readParametersWireFormat( byte[] buffer, int bufferIndex, int len ) {
public boolean init() { Config.setProperty("jcifs.smb.client.soTimeout", "300000"); Config.setProperty("jcifs.netbios.cachePolicy", "1200"); Config.setProperty("jcifs.smb.client.domain", defaultDomain); Config.setProperty("jcifs.http.domainController", domainController); Config.setProperty("jcifs.util.loglevel", "10"); LogStream.setLevel(10); if (winsAddress != null) { Config.setProperty("jcifs.netbios.wins", winsAddress); } if (domainController == null) { domainController = defaultDomain; balancing = Boolean.parseBoolean(loadBalance); } return true; }
/** * This must be called before <tt>getInstance</tt> is called or * it will have no effect. */ public static void setInstance( PrintStream stream ) { inst = new LogStream( stream ); } public static LogStream getInstance() {
public static LogStream getInstance() { if( inst == null ) { setInstance( System.err ); } return inst; } }