- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 58 for getContext (0.43 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 ) {
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Thu Jan 05 13:09:03 GMT 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);
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Aug 05 09:45:59 GMT 2018 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/tests/NamingTest.java
public void testCodepage () throws MalformedURLException, UnknownHostException, CIFSException { Assume.assumeFalse("Unicode support", getContext().getConfig().isUseUnicode()); Assume.assumeFalse("SMB2", getContext().getConfig().getMaximumVersion().isSMB2()); String oemEncoding = getContext().getConfig().getOemEncoding(); String str = null; try { switch ( oemEncoding.toLowerCase(Locale.ROOT) ) {
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sat Jun 06 10:48:05 GMT 2020 - 7K bytes - Viewed (0) -
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());
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Wed Jan 08 13:16:07 GMT 2020 - 23K 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());
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 4.1K 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();
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Mar 01 09:46:04 GMT 2020 - 13.5K 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)); } }
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Thu Jan 05 13:09:03 GMT 2023 - 25.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)
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Thu Jan 05 13:09:03 GMT 2023 - 12.3K bytes - Viewed (0) -
src/main/java/jcifs/SmbSession.java
*/ <T extends SmbSession> T unwrap ( Class<T> type ); /** * * @return the context this session is attached to */ CIFSContext getContext ();
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 1.4K 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 ); /** *
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 1.5K bytes - Viewed (0)