Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 338 for toen (0.03 sec)

  1. src/main/java/org/codelibs/fess/helper/AccessTokenHelper.java

        /**
         * Generate the access token.
         * @return The access token.
         */
        public String generateAccessToken() {
            return RandomStringUtils.random(ComponentUtil.getFessConfig().getApiAccessTokenLengthAsInteger(), 0, 0, true, true, null, random);
        }
    
        /**
         * Get the access token from the request.
         * @param request The request.
         * @return The access token.
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/kerberos/KerberosPacAuthData.java

        /**
         * Constructs KerberosPacAuthData from token bytes.
         *
         * @param token the PAC token bytes
         * @param keys map of Kerberos keys indexed by key type
         * @throws PACDecodingException if PAC decoding fails
         */
        public KerberosPacAuthData(byte[] token, Map<Integer, KerberosKey> keys) throws PACDecodingException {
            this.pac = new Pac(token, keys);
        }
    
        /**
         * Returns the PAC object.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/exception/InvalidAccessTokenException.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.exception;
    
    /**
     * Exception thrown when an invalid access token is encountered.
     * This exception is typically used in authentication and authorization contexts
     * where a provided access token is invalid, expired, or malformed.
     */
    public class InvalidAccessTokenException extends FessSystemException {
    
        /** Serial version UID for serialization */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/kerberos/KerberosTokenTest.java

     */
    class KerberosTokenTest {
    
        /**
         * Test constructor with an empty token.
         */
        @Test
        void testConstructorWithEmptyToken() {
            byte[] emptyToken = new byte[0];
            assertThrows(PACDecodingException.class, () -> new KerberosToken(emptyToken));
        }
    
        /**
         * Test constructor with a malformed token (not ASN.1).
         */
        @Test
        void testConstructorWithMalformedToken() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            // Given
            Configuration mockConfig = mock(Configuration.class);
    
            // When
            Smb2TreeDisconnectRequest req = new Smb2TreeDisconnectRequest(mockConfig);
    
            // Then - verify command is set correctly using reflection
            Field commandField = ServerMessageBlock2.class.getDeclaredField("command");
            commandField.setAccessible(true);
            int command = (int) commandField.get(req);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

            int expectedLength = 100;
    
            when(messageBlock.decode(buffer, bufferIndex)).thenReturn(expectedLength);
    
            // When
            int actualLength = messageBlock.decode(buffer, bufferIndex);
    
            // Then
            assertEquals(expectedLength, actualLength);
            verify(messageBlock).decode(buffer, bufferIndex);
        }
    
        @Test
        @DisplayName("Test decode method throws SMBProtocolDecodingException")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/samrTest.java

        @Nested
        @DisplayName("Protocol Information Tests")
        class ProtocolInfoTests {
    
            @Test
            @DisplayName("Should return correct syntax string")
            void testGetSyntax() {
                // When/Then: Verify the protocol syntax identifier
                assertEquals("12345778-1234-abcd-ef00-0123456789ac:1.0", samr.getSyntax());
            }
        }
    
        @Nested
        @DisplayName("Constants Tests")
        class ConstantsTests {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/NtStatusTest.java

            // When/Then
            assertEquals((int) 0x80000005L, infoStatus);
            // Should be an informational/warning status (0x8 prefix)
            assertTrue((infoStatus & (int) 0x80000000L) == (int) 0x80000000L);
        }
    
        @Test
        @DisplayName("Should handle pending status")
        void testPendingStatus() {
            // Given
            int pendingStatus = NtStatus.NT_STATUS_PENDING;
    
            // When/Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            // Then
            assertEquals(128, credits);
        }
    
        @Test
        @DisplayName("Should return dialect revision")
        void testGetDialectRevision() throws Exception {
            // Given
            setPrivateField(response, "dialectRevision", 0x0311);
    
            // When
            int dialect = response.getDialectRevision();
    
            // Then
            assertEquals(0x0311, dialect);
        }
    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. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            // Then
            assertNotNull(resp);
            assertTrue(resp instanceof ServerMessageBlock2Response);
            assertTrue(resp instanceof ServerMessageBlock2);
        }
    
        @Test
        @DisplayName("Should return correct OVERHEAD constant value")
        void testOverheadConstant() {
            // Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
Back to top