public DcerpcException getResult() { if (result != 0) return new DcerpcException(result); return null; }
/** * * @return result exception, if the call failed */ public DcerpcException getResult () { if ( this.result != 0 ) return new DcerpcException(this.result); return null; }
/** * * @return result exception, if the call failed */ public DcerpcException getResult () { if ( this.result != 0 ) return new DcerpcException(this.result); return null; }
public DcerpcException getResult() { if (result != 0) return new DcerpcException(result); return null; }
public DcerpcException getResult() { if (result != 0) return new DcerpcException(result); return null; }
public DcerpcException getResult() { if (result != 0) return new DcerpcException(result); return null; }
public static DcerpcHandle getHandle(String url, NtlmPasswordAuthentication auth) throws UnknownHostException, MalformedURLException, DcerpcException { if (url.startsWith("ncacn_np:")) { return new DcerpcPipeHandle(url, auth); } throw new DcerpcException("DCERPC transport not supported: " + url); }
@Override public DcerpcException getResult () { if ( this.result != 0 ) return new DcerpcException(getResultMessage(this.result)); return null; }
public DcerpcException getResult() { if (result != 0) return new DcerpcException(getResultMessage(result)); return null; }
public DcerpcException getResult() { if (result != 0) return new DcerpcException(getResultMessage(result)); return null; }
@Override public DcerpcException getResult () { if ( this.result != 0 ) return new DcerpcException(getResultMessage(this.result)); return null; }
public DcerpcException getResult() { if (result != 0) return new DcerpcException(getResultMessage(result)); return null; }
public static DcerpcHandle getHandle(String url, NtlmPasswordAuthentication auth) throws UnknownHostException, MalformedURLException, DcerpcException { if (url.startsWith("ncacn_np:")) { return new DcerpcPipeHandle(url, auth); } throw new DcerpcException("DCERPC transport not supported: " + url); }
public DcerpcException getResult() { if (result != 0) return new DcerpcException(getResultMessage(result)); return null; }
public static DcerpcHandle getHandle(String url, NtlmPasswordAuthentication auth) throws UnknownHostException, MalformedURLException, DcerpcException { if (url.startsWith("ncacn_np:")) { return new DcerpcPipeHandle(url, auth); } throw new DcerpcException("DCERPC transport not supported: " + url); }
/** * Get a handle to a service * * @param url * @param tc * @param unshared * whether an exclusive connection should be used * @return a DCERPC handle for the given url * @throws MalformedURLException * @throws DcerpcException */ public static DcerpcHandle getHandle ( String url, CIFSContext tc, boolean unshared ) throws MalformedURLException, DcerpcException { if ( url.startsWith("ncacn_np:") ) { return new DcerpcPipeHandle(url, tc, unshared); } throw new DcerpcException("DCERPC transport not supported: " + url); }
/** * Get a handle to a service * * @param url * @param tc * @param unshared * whether an exclusive connection should be used * @return a DCERPC handle for the given url * @throws MalformedURLException * @throws DcerpcException */ public static DcerpcHandle getHandle ( String url, CIFSContext tc, boolean unshared ) throws MalformedURLException, DcerpcException { if ( url.startsWith("ncacn_np:") ) { return new DcerpcPipeHandle(url, tc, unshared); } throw new DcerpcException("DCERPC transport not supported: " + url); }
void setOption ( String key, Object val ) throws DcerpcException { if ( key.equals("endpoint") ) { this.endpoint = val.toString(); String lep = this.endpoint.toLowerCase(Locale.ENGLISH); if ( lep.startsWith("\\pipe\\") ) { String iface = INTERFACES.get(lep.substring(6)); if ( iface != null ) { int c, p; c = iface.indexOf(':'); p = iface.indexOf('.', c + 1); this.uuid = new UUID(iface.substring(0, c)); this.major = Integer.parseInt(iface.substring(c + 1, p)); this.minor = Integer.parseInt(iface.substring(p + 1)); return; } } throw new DcerpcException("Bad endpoint: " + this.endpoint); } if ( this.options == null ) this.options = new HashMap<>(); this.options.put(key, val); }
void setOption(String key, Object val) throws DcerpcException { if (key.equals("endpoint")) { endpoint = val.toString().toLowerCase(); if (endpoint.startsWith("\\pipe\\")) { String iface = (String)INTERFACES.get(endpoint.substring(6)); if (iface != null) { int c, p; c = iface.indexOf(':'); p = iface.indexOf('.', c + 1); uuid = new UUID(iface.substring(0, c)); major = Integer.parseInt(iface.substring(c + 1, p)); minor = Integer.parseInt(iface.substring(p + 1)); return; } } throw new DcerpcException("Bad endpoint: " + endpoint); } if (options == null) options = new HashMap(); options.put(key, val); } Object getOption(String key) {
public static <Authenticator> DcerpcHandle getHandle(String url, Authenticator auth) throws UnknownHostException, MalformedURLException, DcerpcException { if (url.startsWith("ncacn_np:")) { return (auth instanceof NtlmPasswordAuthentication)? new DcerpcPipeHandle(url, (NtlmPasswordAuthentication)auth): new DcerpcPipeHandle(url, (SmbExtendedAuthenticator)auth); } throw new DcerpcException("DCERPC transport not supported: " + url); }