- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 38 for getContext (0.19 sec)
-
src/test/java/jcifs/tests/FileLocationTest.java
} } @Test public void testParentRoot () throws MalformedURLException, CIFSException { try ( SmbFile p = new SmbFile("smb://", getContext()); SmbResource pp = new SmbFile(p.getParent(), getContext()) ) { assertEquals("smb://", p.getLocator().getParent()); assertEquals(SmbConstants.TYPE_WORKGROUP, pp.getLocator().getType());
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Wed Jan 08 13:16:07 UTC 2020 - 23K bytes - Viewed (0) -
src/test/java/jcifs/tests/DfsTest.java
} return getTestServer(); } @Override @Before public void setUp () throws Exception { super.setUp(); Assume.assumeFalse(getContext().getConfig().isDfsDisabled()); } @Test public void resolveDC () throws CIFSException { CIFSContext context = withAnonymousCredentials(); DfsResolver dfs = context.getDfs();
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Mar 01 09:46:04 UTC 2020 - 13.5K bytes - Viewed (0) -
src/test/java/jcifs/tests/KerberosTest.java
} @Test public void testKRB () throws Exception { Assume.assumeTrue(getContext().getConfig().getResolveOrder().contains(ResolverType.RESOLVER_DNS)); Subject s = getInitiatorSubject(getTestUser(), getTestUserPassword(), getTestUserDomainRequired(), null); CIFSContext ctx = getContext().withCredentials(new Kerb5Authenticator(s, getTestUserDomainRequired(), getTestUser(), getTestUserPassword()));
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Mar 01 09:46:04 UTC 2020 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/tests/ContextConfigTest.java
NtlmPasswordAuthenticator na = f.getContext().getCredentials().unwrap(NtlmPasswordAuthenticator.class); Assert.assertEquals("b@r", na.getPassword()); } try ( SmbFile f = new SmbFile(new URL("smb://foo:b%40r@127.0.0.1/")) ) { Assert.assertEquals("foo:b%40r", f.getLocator().getURL().getUserInfo());
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Mon Mar 13 12:00:57 UTC 2023 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/tests/ReadWriteTest.java
try ( SmbNamedPipe s = new SmbNamedPipe(getFifoPipeUrl(), SmbPipeResource.PIPE_TYPE_WRONLY, withTestNTLMCredentials(getContext())); SmbNamedPipe t = new SmbNamedPipe(getFifoPipeUrl(), SmbPipeResource.PIPE_TYPE_RDONLY, withTestNTLMCredentials(getContext())) ) { try ( SmbPipeHandle sp = s.openPipe(); SmbPipeHandle tp = t.openPipe() ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 13.2K bytes - Viewed (0) -
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/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/main/java/jcifs/ntlmssp/Type2Message.java
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 14.4K 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)