- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 49 for setContext (0.11 sec)
-
src/test/java/jcifs/tests/SessionTest.java
ignoreAuthFailure(e); } } @Test public void logonGuestLegacy2 () throws IOException { CIFSContext ctx = getContext().withCredentials(new NtlmPasswordAuthentication(getContext(), null, "guest", "")); try ( SmbResource f = new SmbFile(getTestShareGuestURL(), ctx) ) { checkConnection(f); } catch ( SmbAuthException e ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Jan 05 13:09:03 UTC 2023 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
} if ( req.getDomain() != null && getContext().getConfig().isDfsConvertToFQDN() && dr instanceof DfsReferralDataImpl ) { ( (DfsReferralDataImpl) dr ).fixupDomain(req.getDomain()); } if ( log.isDebugEnabled() ) { log.debug("Got referral " + dr); } getContext().getDfs().cache(getContext(), path, dr); throw new DfsReferral(dr); }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Wed Jan 18 23:47:00 UTC 2023 - 67K bytes - Viewed (0) -
src/test/java/jcifs/tests/PipeTest.java
@Test public void testSRVS () throws DcerpcException, IOException { try ( DcerpcHandle handle = DcerpcHandle .getHandle("ncacn_np:" + getTestServer() + "[\\PIPE\\srvsvc]", withTestNTLMCredentials(getContext())) ) { MsrpcShareEnum rpc = new MsrpcShareEnum(handle.getServerWithDfs()); handle.sendrecv(rpc); assertEquals(0, rpc.retval); } } @Test
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/tests/SidTest.java
String sid = getRequiredProperty(TestProperties.TEST_USER_SID); SID s = new SID(sid); s.resolve(getRequiredProperty(TestProperties.TEST_DOMAIN_DC), withTestNTLMCredentials(getContext())); assertEquals(getRequiredProperty(TestProperties.TEST_USER_DOMAIN_SHORT), s.getDomainName()); assertEquals(getTestUser(), s.getAccountName()); assertEquals(jcifs.SID.SID_TYPE_USER, s.getType());
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 4.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java
switch ( transport.getContext().getConfig().getLanManCompatibility() ) { case 0: case 1: case 2: this.macSigningKey = new byte[40]; auth.getUserSessionKey(transport.getContext(), serverEncryptionKey, this.macSigningKey, 0); System.arraycopy(auth.getUnicodeHash(transport.getContext(), serverEncryptionKey), 0, this.macSigningKey, 16, 24);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Aug 05 09:45:59 UTC 2018 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/tests/EnumTest.java
} } @Test public void testShareEnum () throws MalformedURLException, CIFSException { try ( SmbFile smbFile = new SmbFile("smb://" + getTestServer(), withTestNTLMCredentials(getContext())) ) { String[] list = smbFile.list(); assertNotNull(list); assertTrue("No share found", list.length > 0); log.debug(Arrays.toString(list)); } }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Jan 05 13:09:03 UTC 2023 - 25.5K bytes - Viewed (0) -
src/test/java/jcifs/tests/BaseCIFSTest.java
} protected CIFSContext withTestGuestCredentials () { return getContext().withGuestCrendentials(); } protected CIFSContext withAnonymousCredentials () { return getContext().withAnonymousCredentials(); } protected String getTestDomain () {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 8.1K bytes - Viewed (0) -
src/main/java/jcifs/SmbTransport.java
* * @author mbechler * @internal */ public interface SmbTransport extends AutoCloseable { /** * @return the context this transport is attached to */ CIFSContext getContext (); /** * * @param type * @return transport instance with the given type */ <T extends SmbTransport> T unwrap ( Class<T> type ); /** *
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 1.5K bytes - Viewed (0) -
src/test/java/jcifs/tests/FileAttributesTest.java
try ( SmbResource f = createTestFile() ) { try { long time = System.currentTimeMillis() - 1000 * 60 * 60 * 12; f.setLastModified(time); if ( ( getContext().getConfig().getCapabilities() & SmbConstants.CAP_NT_SMBS ) == 0 ) { // only have second precision // there seems to be some random factor (adding one second)
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Jan 05 13:09:03 UTC 2023 - 12.3K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/aether/ReverseTreeRepositoryListener.java
Dependency node = collectStepTrace.getNode(); trackingData.add(resolvedArtifact.toString()); indent += " "; trackingData.add(indent + node + " (" + collectStepTrace.getContext() + ")"); ListIterator<DependencyNode> iter = collectStepTrace .getPath() .listIterator(collectStepTrace.getPath().size());
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 9.8K bytes - Viewed (0)