Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for subSet (0.09 sec)

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

            Subject presetSubject = new Subject();
            orig.setSubject(presetSubject);
    
            // Try to get a Subject, but handle the case where JAAS may not be configured
            Subject first = orig.getSubject();
            // In test environments, getSubject() may return null if JAAS is not configured
            // This is acceptable behavior - the test should focus on the cloning logic
    
            // Clone and verify basic fields copied
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/JAASAuthenticator.java

                }
                lc.login();
    
                Subject s = lc.getSubject();
                if (log.isDebugEnabled()) {
                    log.debug("Got subject: " + s.getPrincipals());
                }
                if (log.isTraceEnabled()) {
                    log.trace("Got subject " + s);
                }
    
                this.cachedSubject = s;
                return this.cachedSubject;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.3K bytes
    - Viewed (1)
  3. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

            // When - Multiple threads accessing trees concurrently
            for (int t = 0; t < threadCount; t++) {
                final int threadId = t;
                executor.submit(() -> {
                    try {
                        startLatch.await(); // Wait for all threads to be ready
    
                        for (int i = 0; i < opsPerThread; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

                AtomicInteger successCount = new AtomicInteger(0);
                ExecutorService executor = Executors.newFixedThreadPool(5);
    
                // Submit 5 concurrent tasks when max is 2
                for (int i = 0; i < 5; i++) {
                    executor.submit(() -> {
                        try {
                            startLatch.await();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/CriticalPerformanceTest.java

            Mockito.when(mockAddress.getHostAddress()).thenReturn("127.0.0.1");
    
            // Start timing
            long overallStart = System.nanoTime();
    
            for (int t = 0; t < threadCount; t++) {
                executor.submit(() -> {
                    try {
                        startLatch.await();
    
                        long threadStart = System.nanoTime();
                        for (int i = 0; i < operationsPerThread; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                }
    
                // Submit task to wipe key
                executor.submit(() -> {
                    try {
                        startLatch.await();
                        Thread.sleep(10);
                        digest.secureWipeKey();
                    } catch (Exception e) {
                        // Ignore
                    }
                });
    
                // Submit more tasks that try to verify data
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/security/oauth2-jwt.md

    Create a real JWT access token and return it.
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[118:133] *}
    
    ### Technical details about the JWT "subject" `sub` { #technical-details-about-the-jwt-subject-sub }
    
    The JWT specification says that there's a key `sub`, with the subject of the token.
    
    It's optional to use it, but that's where you would put the user's identification, so we are using it here.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbSessionImpl.java

                }
            }
        }
    
        private static byte[] createToken(final SSPContext ctx, final byte[] token, Subject s) throws CIFSException {
            if (s != null) {
                try {
                    return Subject.doAs(s,
                            (PrivilegedExceptionAction<byte[]>) () -> ctx.initSecContext(token, 0, token == null ? 0 : token.length));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/security/oauth2-jwt.md

    Erstellen Sie einen echten JWT-Zugriffstoken und geben Sie ihn zurück.
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[117:132] *}
    
    ### Technische Details zum JWT-„Subjekt“ `sub`
    
    Die JWT-Spezifikation besagt, dass es einen Schlüssel `sub` mit dem Subjekt des Tokens gibt.
    
    Die Verwendung ist optional, aber dort würden Sie die Identifikation des Benutzers speichern, daher verwenden wir das hier.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/PreauthIntegrityTest.java

            for (int i = 0; i < testData.length; i++) {
                testData[i] = (byte) i;
            }
    
            // Run concurrent updates
            for (int i = 0; i < threadCount; i++) {
                executor.submit(() -> {
                    try {
                        startLatch.await();
                        Method updateMethod = findMethod(transport.getClass(), "updatePreauthHash", byte[].class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
Back to top