Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for get_content (0.19 sec)

  1. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Sat Jun 06 10:48:05 GMT 2020
    - 7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

        }
    
        public Object getContent() throws IOException {
            try {
                handshake();
            } catch (IOException ex) { }
            return connection.getContent();
        }
    
        public Object getContent(Class[] classes) throws IOException {
            try {
                handshake();
            } catch (IOException ex) { }
            return connection.getContent(classes);
        }
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 20.4K bytes
    - Viewed (0)
  3. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 15.8K bytes
    - Viewed (0)
  4. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Aug 05 09:45:59 GMT 2018
    - 10.6K bytes
    - Viewed (0)
  5. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 1.4K bytes
    - Viewed (0)
  6. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 1.5K bytes
    - Viewed (0)
  7. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 4.1K bytes
    - Viewed (0)
  8. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Mar 01 09:46:04 GMT 2020
    - 13.5K bytes
    - Viewed (0)
  9. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  10. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 12.3K bytes
    - Viewed (0)
Back to top