Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for isAnonymous (0.15 sec)

  1. src/test/java/jcifs/tests/ContextConfigTest.java

            NtlmPasswordAuthenticator ntlmGuestCreds = guestCreds.unwrap(NtlmPasswordAuthenticator.class);
            assertThat("anonymous", ntlmGuestCreds.isAnonymous(), CoreMatchers.is(false));
            assertThat("guest", ntlmGuestCreds.isGuest(), CoreMatchers.is(true));
    
            Credentials anonCreds = this.context.withAnonymousCredentials().getCredentials();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/Kerb5Authenticator.java

            this.contextLifetime = time;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.CredentialsInternal#isAnonymous()
         */
        @Override
        public boolean isAnonymous () {
            return this.getSubject() == null && super.isAnonymous();
        }
    
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 13K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/NtlmContext.java

            this.ntlmsspFlags = this.ntlmsspFlags | NtlmFlags.NTLMSSP_REQUEST_TARGET | NtlmFlags.NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
                    | NtlmFlags.NTLMSSP_NEGOTIATE_128;
            if ( !auth.isAnonymous() ) {
                this.ntlmsspFlags |= NtlmFlags.NTLMSSP_NEGOTIATE_SIGN | NtlmFlags.NTLMSSP_NEGOTIATE_ALWAYS_SIGN | NtlmFlags.NTLMSSP_NEGOTIATE_KEY_EXCH;
            }
            else if ( auth.isGuest() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 15.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

        public byte[] getChallenge ( CIFSContext tf, Address dc, int port ) throws SmbException {
            try ( SmbTransportInternal trans = tf.getTransportPool()
                    .getSmbTransport(tf, dc, port, false, !tf.getCredentials().isAnonymous() && tf.getConfig().isIpcSigningEnforced())
                    .unwrap(SmbTransportInternal.class) ) {
                trans.ensureConnected();
                return trans.getServerEncryptionKey();
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 12.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/SessionTest.java

            try ( SmbFile f = new SmbFile(url) ) {
                Credentials creds = f.getContext().getCredentials();
    
                assertFalse(creds.isAnonymous());
                assertFalse(creds.isGuest());
                assertTrue(creds instanceof NtlmPasswordAuthenticator);
                NtlmPasswordAuthenticator ntcreds = (NtlmPasswordAuthenticator) creds;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

         * <tt>domain\\username</tt>. This is equivalent to <tt>getName()</tt>.
         */
        @Override
        public String toString () {
            return getName();
        }
    
    
        @Override
        public boolean isAnonymous () {
            return this.type == AuthenticationType.NULL;
        }
    
    
        @Override
        public boolean isGuest () {
            return this.type == AuthenticationType.GUEST;
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 18.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTreeImpl.java

            }
    
            if ( transport.getContext().getConfig().isIpcSigningEnforced() && ( "IPC$".equals(this.getShare()) || "IPC".equals(rsvc) )
                    && !sess.getCredentials().isAnonymous() && sess.getDigest() == null ) {
                throw new SmbException("IPC signing is enforced, but no signing is available");
            }
    
            this.service = rsvc;
            this.inDfs = response.isShareDfs();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:06:39 UTC 2023
    - 29.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTreeConnection.java

                DfsReferralData referral, SmbAuthException sae ) throws SmbAuthException, CIFSException {
            try ( SmbSessionImpl treesess = t.getSession() ) {
                if ( treesess.getCredentials().isAnonymous() || treesess.getCredentials().isGuest() ) {
                    // refresh anonymous session or fallback to anonymous from guest login
                    try ( SmbSessionInternal s = trans
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 31K bytes
    - Viewed (0)
  9. src/main/java/jcifs/http/NtlmHttpURLConnection.java

                    NtlmPasswordAuthentication npa = (NtlmPasswordAuthentication) this.transportContext.getCredentials();
                    String domain = npa.getUserDomain();
                    String user = !npa.isAnonymous() ? npa.getUsername() : null;
                    String password = npa.getPassword();
                    String userInfo = this.url.getUserInfo();
                    if ( userInfo != null ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 25.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/DfsImpl.java

                                    tf,
                                    dr.getServer(),
                                    0,
                                    false,
                                    !tf.getCredentials().isAnonymous() && tf.getConfig().isSigningEnabled() && tf.getConfig().isIpcSigningEnforced())
                                        .unwrap(SmbTransportImpl.class);
                                transport.ensureConnected();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:07:29 UTC 2023
    - 29.1K bytes
    - Viewed (0)
Back to top