Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 18 for createContext (0.37 seconds)

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

        }
    
        @Test
        @DisplayName("createContext returns SSPContext and interacts with CIFSContext")
        void createContext_happy_interacts_and_returns_context() throws Exception {
            // Arrange
            TestCredentials creds = new TestCredentials("D", false, false, new Subject(), false);
    
            // Act
            SSPContext ctx = creds.createContext(mockContext, "TARGET", "host", new byte[0], true);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java

            SmbUnsupportedOperationException ex =
                    assertThrows(SmbUnsupportedOperationException.class, () -> auth.createContext(tc, null, "SERVER", new byte[0], false));
            assertTrue(ex.getMessage().contains("Cannot use netbios/short names"));
        }
    
        @Test
        @DisplayName("createContext: no Kerberos in initial token and no fallback -> throws")
        void createContext_noKerberosNoFallback_throws() throws CIFSException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

            return contentOps.indexFromQueryLog(createContext(), queryLog);
        }
    
        /**
         * Indexes multiple query logs.
         * @param queryLogs The query logs to index.
         * @return The SuggestIndexResponse.
         */
        public SuggestIndexResponse indexFromQueryLog(final QueryLog[] queryLogs) {
            ensureOperations();
            return contentOps.indexFromQueryLog(createContext(), queryLogs);
        }
    
        /**
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 20.9K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/Kerb5Authenticator.java

        }
    
        /**
         *
         * {@inheritDoc}
         *
         * @see jcifs.smb.NtlmPasswordAuthenticator#createContext(jcifs.CIFSContext, java.lang.String, java.lang.String,
         *      byte[], boolean)
         */
        @Override
        public SSPContext createContext(CIFSContext tc, String targetDomain, String host, byte[] initialToken, boolean doSigning)
                throws SmbException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java

         * @return the createContexts
         */
        public CreateContextResponse[] getCreateContexts() {
            return this.createContexts;
        }
    
        /**
         * Get the lease V1 context response if present
         * @return the lease V1 context or null if not present
         */
        public LeaseV1CreateContextResponse getLeaseV1Context() {
            if (this.createContexts != null) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:49:49 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

                                + " (data start: " + ncpos + ", length: " + dataLen + ", buffer size: " + buffer.length + ")");
                    }
    
                    final NegotiateContextResponse ctx = createContext(type);
                    if (ctx != null) {
                        try {
                            ctx.decode(buffer, ncpos, dataLen);
                            contexts[i] = ctx;
                        } catch (Exception e) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 24K bytes
    - Click Count (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/ShellInvoker.java

        public ShellInvoker(Lookup protoLookup, @Nullable Consumer<LookupContext> contextConsumer) {
            super(protoLookup, contextConsumer);
        }
    
        @Override
        protected LookupContext createContext(InvokerRequest invokerRequest) {
            return new LookupContext(invokerRequest, true, invokerRequest.options().orElse(null));
        }
    
        public static final int OK = 0; // OK
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

            } else {
                CreateContextRequest[] newContexts = new CreateContextRequest[this.createContexts.length + 1];
                System.arraycopy(this.createContexts, 0, newContexts, 0, this.createContexts.length);
                newContexts[this.createContexts.length] = context;
                this.createContexts = newContexts;
            }
        }
    
        /**
         * Add a lease V1 context to this request
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 22.9K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

        }
    
        /**
         *
         * {@inheritDoc}
         *
         * @see jcifs.smb.CredentialsInternal#createContext(jcifs.CIFSContext, java.lang.String, java.lang.String, byte[],
         *      boolean)
         */
        @Override
        public SSPContext createContext(CIFSContext tc, String targetDomain, String host, byte[] initialToken, boolean doSigning)
                throws SmbException {
            checkNotClosed();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 30.3K bytes
    - Click Count (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

            Properties oldProps = new Properties();
            oldProps.putAll(System.getProperties());
            ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
            try (C context = createContext(invokerRequest)) {
                if (contextConsumer != null) {
                    contextConsumer.accept(context);
                }
                try {
                    if (context.containerCapsule != null
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Oct 28 13:01:07 GMT 2025
    - 43.2K bytes
    - Click Count (0)
Back to Top