Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for setContext (0.1 sec)

  1. 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;
        }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 14.4K bytes
    - Viewed (0)
  2. 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;
        }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 12.6K bytes
    - Viewed (0)
  3. 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
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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) ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jun 06 10:48:05 UTC 2020
    - 7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbSessionImpl.java

                        if ( isExternalAuth(getContext(), npa) ) {
                            /*
                             * preauthentication
                             */
                            try ( SmbSessionImpl smbSession = trans.getSmbSession(getContext().withDefaultCredentials());
                                  SmbTreeImpl t = smbSession.getSmbTree(getContext().getConfig().getLogonShare(), null) ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 14 17:41:04 UTC 2021
    - 49K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top