Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 83 for getContext (0.61 sec)

  1. 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);
        }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 18 23:47:00 GMT 2023
    - 67K bytes
    - Viewed (0)
  2. 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)
  3. 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() ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 13.2K bytes
    - Viewed (0)
  4. 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)
  5. src/main/java/jcifs/smb/SmbFile.java

            this(
                isWorkgroup(context) ? new URL(null, "smb://" + checkName(name), context.getContext().getUrlHandler())
                        : new URL(context.getLocator().getURL(), encodeRelativePath(checkName(name)), context.getContext().getUrlHandler()),
                context.getContext());
            setContext(context, name);
        }
    
    
        /**
         * Construct from string URL
         * 
         * @param url
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 81.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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());
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/ntlmssp/Type2Message.java

         *         authentication.
         */
        public byte[] getContext () {
            return this.context;
        }
    
    
        /**
         * Sets the local security context. This is used by the client
         * to negotiate local authentication.
         *
         * @param context
         *            The local security context.
         */
        public void setContext ( byte[] context ) {
            this.context = context;
        }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 14.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/ntlmssp/Type2Message.java

         * authentication.
         */
        public byte[] getContext() {
            return context;
        }
    
        /**
         * Sets the local security context.  This is used by the client
         * to negotiate local authentication.
         *
         * @param context The local security context.
         */
        public void setContext(byte[] context) {
            this.context = context;
        }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 12.6K bytes
    - Viewed (0)
Back to top