Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for createContext (0.09 sec)

  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);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (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 {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. 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 {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  4. 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
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/resident/ResidentMavenInvoker.java

                exceptions.forEach(exception::addSuppressed);
                throw exception;
            }
        }
    
        @Override
        protected MavenContext createContext(InvokerRequest invokerRequest) {
            // TODO: in a moment Maven stop pushing user properties to system properties (and maybe something more)
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Sep 11 17:20:46 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/CredentialsInternal.java

         * @param doSigning whether message signing should be enabled
         * @return a new SSP authentication context
         * @throws SmbException if context creation fails
         */
        SSPContext createContext(CIFSContext tc, String targetDomain, String host, byte[] initialToken, boolean doSigning) throws SmbException;
    
        /**
         * Get the security subject associated with these credentials.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbSessionImpl.java

            }
    
            if (s == null) {
                return this.credentials.createContext(getContext(), tdomain, host, negoResp.getSecurityBlob(), doSigning);
            }
    
            try {
                final String hostName = host;
                return Subject.doAs(s, (PrivilegedExceptionAction<SSPContext>) () -> getCredentials().createContext(getContext(), tdomain,
                        hostName, negoResp.getSecurityBlob(), doSigning));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  8. 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) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            // Test encryption context
            NegotiateContextResponse enc = Smb2NegotiateResponse.createContext(EncryptionNegotiateContext.NEGO_CTX_ENC_TYPE);
            assertNotNull(enc);
            assertTrue(enc instanceof EncryptionNegotiateContext);
    
            // Test preauth context
            NegotiateContextResponse preauth = Smb2NegotiateResponse.createContext(PreauthIntegrityNegotiateContext.NEGO_CTX_PREAUTH_TYPE);
            assertNotNull(preauth);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/EncryptInvoker.java

        public EncryptInvoker(Lookup protoLookup, @Nullable Consumer<LookupContext> contextConsumer) {
            super(protoLookup, contextConsumer);
        }
    
        @Override
        protected EncryptContext createContext(InvokerRequest invokerRequest) {
            return new EncryptContext(
                    invokerRequest, (EncryptOptions) invokerRequest.options().orElse(null));
        }
    
        @Override
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top