Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for isAnonymous (0.27 sec)

  1. 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}
         *
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 13K bytes
    - Viewed (0)
  2. 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();
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java

            if ( server.security == SmbConstants.SECURITY_USER ) {
                if ( cred instanceof NtlmPasswordAuthenticator ) {
                    NtlmPasswordAuthenticator a = (NtlmPasswordAuthenticator) cred;
                    if ( a.isAnonymous() ) {
                        this.lmHash = new byte[0];
                        this.ntHash = new byte[0];
                        this.capabilities &= ~SmbConstants.CAP_EXTENDED_SECURITY;
                        if ( a.isGuest() ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Mar 17 10:20:23 GMT 2019
    - 8.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbSessionImpl.java

                            && ! ( this.credentials.isGuest() || this.credentials.isAnonymous() ) ) {
                        throw new SmbAuthException(NtStatus.NT_STATUS_LOGON_FAILURE);
                    }
                    else if ( !this.credentials.isAnonymous() && response.isLoggedInAsGuest() ) {
                        anonymous = true;
                    }
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Nov 14 17:41:04 GMT 2021
    - 49K bytes
    - Viewed (0)
  5. src/main/java/jcifs/Credentials.java

    
        /**
         * @return the domain the user account is in
         */
        String getUserDomain ();
    
    
        /**
         * @return whether these are anonymous credentials
         */
        boolean isAnonymous ();
    
    
        /**
         * @return whether these are guest credentials
         */
        boolean isGuest ();
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 1.3K bytes
    - Viewed (0)
  6. 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() ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 15.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/JAASAuthenticator.java

            this.configuration = new StaticJAASConfiguration(properties);
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.Kerb5Authenticator#isAnonymous()
         */
        @Override
        public boolean isAnonymous () {
            return false;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.NtlmPasswordAuthenticator#isGuest()
         */
        @Override
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/context/AbstractCIFSContext.java

         *
         * @see jcifs.CIFSContext#hasDefaultCredentials()
         */
        @Override
        public boolean hasDefaultCredentials () {
            return this.getDefaultCredentials() != null && !this.getDefaultCredentials().isAnonymous();
        }
    
    
        /**
         * @return
         */
        protected abstract Credentials getDefaultCredentials ();
    
    
        /**
         * {@inheritDoc}
         *
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Tue Jul 07 10:50:16 GMT 2020
    - 3.7K bytes
    - Viewed (0)
  9. 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;
    
    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)
  10. 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();
            }
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Dec 20 14:09:34 GMT 2020
    - 12.5K bytes
    - Viewed (0)
Back to top