Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for NegTokenInit (0.05 sec)

  1. src/main/java/jcifs/spnego/NegTokenInit.java

        private ASN1ObjectIdentifier[] mechanisms;
    
        private int contextFlags;
    
        /**
         * Default constructor for NegTokenInit
         */
        public NegTokenInit() {
        }
    
        /**
         * Constructs a NegTokenInit with the specified parameters
         * @param mechanisms the array of supported authentication mechanisms
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/spnego/NegTokenInitTest.java

            @ValueSource(ints = { NegTokenInit.DELEGATION, NegTokenInit.MUTUAL_AUTHENTICATION, NegTokenInit.REPLAY_DETECTION,
                    NegTokenInit.SEQUENCE_CHECKING, NegTokenInit.ANONYMITY, NegTokenInit.CONFIDENTIALITY, NegTokenInit.INTEGRITY })
            @DisplayName("Individual flag values are correctly set and retrieved")
            void testIndividualFlagValues(int flag) {
                NegTokenInit init = new NegTokenInit();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/Kerb5Context.java

            }
            if (this.gssContext.getAnonymityState()) {
                contextFlags |= NegTokenInit.ANONYMITY;
            }
            if (this.gssContext.getConfState()) {
                contextFlags |= NegTokenInit.CONFIDENTIALITY;
            }
            if (this.gssContext.getIntegState()) {
                contextFlags |= NegTokenInit.INTEGRITY;
            }
            return contextFlags;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13.5K bytes
    - Viewed (1)
  4. src/test/java/jcifs/smb/Kerb5ContextTest.java

            when(gssContext.getIntegState()).thenReturn(true);
    
            int flags = ctx.getFlags();
            int expected = NegTokenInit.DELEGATION | NegTokenInit.MUTUAL_AUTHENTICATION | NegTokenInit.REPLAY_DETECTION
                    | NegTokenInit.SEQUENCE_CHECKING | NegTokenInit.ANONYMITY | NegTokenInit.CONFIDENTIALITY | NegTokenInit.INTEGRITY;
            assertEquals(expected, flags);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java

    import jcifs.Configuration;
    import jcifs.spnego.NegTokenInit;
    
    @ExtendWith(MockitoExtension.class)
    class Kerb5AuthenticatorTest {
    
        @Mock
        CIFSContext tc;
    
        @Mock
        Configuration config;
    
        private static byte[] spnegoInitWithMechs(ASN1ObjectIdentifier... mechs) {
            // Build a minimal SPNEGO NegTokenInit containing the provided mechanisms
            NegTokenInit tok = new NegTokenInit(mechs, 0, null, null);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SpnegoContext.java

    import org.bouncycastle.asn1.DERSequence;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.CIFSException;
    import jcifs.Configuration;
    import jcifs.spnego.NegTokenInit;
    import jcifs.spnego.NegTokenTarg;
    import jcifs.spnego.SpnegoException;
    import jcifs.spnego.SpnegoToken;
    import jcifs.util.Hexdump;
    
    /**
     * This class used to wrap a {@link SSPContext} to provide SPNEGO feature.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/Kerb5Authenticator.java

                throw new SmbUnsupportedOperationException("Cannot use netbios/short names with kerberos authentication, have " + host);
            }
            try {
                NegTokenInit tok = new NegTokenInit(initialToken);
                if (log.isDebugEnabled()) {
                    log.debug("Have initial token " + tok);
                }
                if (tok.getMechanisms() != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

                return setupTargetName(tc, host, new NtlmContext(tc, this, doSigning));
            }
    
            try {
                if (initialToken != null && initialToken.length > 0) {
                    NegTokenInit tok = new NegTokenInit(initialToken);
                    if (log.isDebugEnabled()) {
                        log.debug("Have initial token " + tok);
                    }
                    if (tok.getMechanisms() != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SpnegoContextTest.java

            // Ensure delegate is not consulted
            verify(this.mechContext, never()).isSupported(any);
        }
    
        @Test
        @DisplayName("initSecContext with empty len returns initial NegTokenInit and delegates to mechContext")
        void testInitSecContextInitialToken() throws Exception {
            SpnegoContext ctx = newContext();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top