Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for initSecContext (0.1 sec)

  1. src/test/java/jcifs/smb/SSPContextTest.java

                assertThrows(CIFSException.class, () -> ctx.initSecContext(buf, 3, 1));
                assertThrows(CIFSException.class, () -> ctx.initSecContext(buf, 2, 2));
            }
    
            @Test
            @DisplayName("initSecContext null token edge cases")
            void testInitSecContextNullToken() throws Exception {
                DummySSPContext ctx = new DummySSPContext(new byte[] { 1 }, false, null, null, 0, false);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/Kerb5ContextTest.java

        }
    
        @Test
        @DisplayName("initSecContext wraps GSSException into SmbAuthException")
        void initSecContext_failure_wraps() throws Exception {
            when(gssContext.initSecContext(any(), anyInt(), anyInt())).thenThrow(new GSSException(GSSException.DEFECTIVE_TOKEN));
            assertThrows(SmbAuthException.class, () -> ctx.initSecContext(new byte[] {}, 0, 0));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SpnegoContext.java

         * Initialize the GSSContext to provide SPNEGO feature.
         *
         * @param inputBuf
         * @param offset
         * @param len
         * @return response token
         */
        @Override
        public byte[] initSecContext(final byte[] inputBuf, final int offset, final int len) throws CIFSException {
            SpnegoToken resp;
            if (this.completed) {
                throw new CIFSException("Already complete");
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/Kerb5Context.java

            }
            throw new SmbException("ExtendedGSSContext is not implemented by GSSContext");
        }
    
        @Override
        public byte[] initSecContext(byte[] token, int off, int len) throws SmbException {
            try {
                return this.gssContext.initSecContext(token, off, len);
            } catch (GSSException e) {
                throw new SmbAuthException("GSSAPI mechanism failed", e);
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13.5K bytes
    - Viewed (1)
  5. src/main/java/jcifs/smb/NtlmContext.java

         * @param targetName
         *            the target's SPN
         */
        public void setTargetName(final String targetName) {
            this.targetName = targetName;
        }
    
        @Override
        public byte[] initSecContext(final byte[] token, final int offset, final int len) throws SmbException {
            return switch (this.state) {
            case 1 -> makeNegotiate(token);
            case 2 -> makeAuthenticate(token);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbSession.java

                                state = 0;
                                break;
                            }
    
                            try {
                                token = nctx.initSecContext(token, 0, token.length);
                            } catch (final SmbException se) {
                                /* We must close the transport or the server will be expecting a
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 20.7K bytes
    - Viewed (0)
Back to top