Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for getSigningKey (0.05 sec)

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

        class InvalidInputs {
            @Test
            @DisplayName("getSigningKey throws when unavailable")
            void testGetSigningKeyThrows() {
                DummySSPContext ctx = new DummySSPContext(null, false, null, null, 0, false);
                CIFSException ex = assertThrows(CIFSException.class, ctx::getSigningKey);
                assertTrue(ex.getMessage().contains("signing key"));
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SpnegoContextTest.java

        }
    
        @Test
        @DisplayName("getSigningKey delegates to underlying mechanism context")
        void testGetSigningKeyDelegates() throws Exception {
            SpnegoContext ctx = newContext();
            byte[] key = new byte[] { 1, 2, 3 };
            when(this.mechContext.getSigningKey()).thenReturn(key);
            assertSame(key, ctx.getSigningKey());
            verify(this.mechContext, times(1)).getSigningKey();
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/NtlmContextTest.java

            NtlmContext context = new NtlmContext(mockAuth, true);
            assertNotNull(context);
            assertFalse(context.isEstablished());
            assertNull(context.getServerChallenge());
            assertNull(context.getSigningKey());
            assertNull(context.getNetbiosName());
    
            int expectedFlags = NtlmFlags.NTLMSSP_REQUEST_TARGET | NtlmFlags.NTLMSSP_NEGOTIATE_NTLM2 | NtlmFlags.NTLMSSP_NEGOTIATE_128
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SpnegoContext.java

        public String getNetbiosName() {
            return null;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SSPContext#getSigningKey()
         */
        @Override
        public byte[] getSigningKey() throws CIFSException {
            return this.mechContext.getSigningKey();
        }
    
        /**
         * Initialize the GSSContext to provide SPNEGO feature.
         *
         * @param inputBuf
         * @param offset
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/AuthenticationProvider.java

         */
        byte[] getSessionKey();
    
        /**
         * Gets the signing key for SMB2/3
         *
         * @return the signing key or null if not available
         */
        byte[] getSigningKey();
    
        /**
         * Validates authentication credentials
         *
         * @return true if credentials are valid
         */
        boolean validateCredentials();
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 3.9K bytes
    - Viewed (1)
  6. src/main/java/jcifs/smb/SSPContext.java

        /**
         * Gets the signing key for the session.
         * @return the signing key for the session
         * @throws CIFSException if an error occurs retrieving the signing key
         */
        byte[] getSigningKey() throws CIFSException;
    
        /**
         * Checks whether the security context is established.
         * @return whether the context is established
         */
        boolean isEstablished();
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/Kerb5Context.java

         */
        @Override
        public String getNetbiosName() {
            return null;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SSPContext#getSigningKey()
         */
        @Override
        public byte[] getSigningKey() throws SmbException {
            /*
             * The kerberos session key is not accessible via the JGSS API. IBM and
             * Oracle both implement a similar API to make an ExtendedGSSContext
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13.5K bytes
    - Viewed (1)
  8. src/main/java/jcifs/smb/SmbSessionImpl.java

                        this.sessionKey = ctx.getSigningKey();
                        if (request != null && request.getDigest() != null) {
                            /* success - install the signing digest */
                            setDigest(request.getDigest());
                        } else if (!anonymous && isSignatureSetupRequired()) {
                            byte[] signingKey = ctx.getSigningKey();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  9. cmd/streaming-signature-v4.go

    		cr.seedDate.Format(iso8601Format) + "\n" +
    		getScope(cr.seedDate, cr.region) + "\n" +
    		cr.seedSignature + "\n" +
    		emptySHA256 + "\n" +
    		hashedChunk
    
    	// Get hmac signing key.
    	signingKey := getSigningKey(cr.cred.SecretKey, cr.seedDate, cr.region, serviceS3)
    
    	// Calculate signature.
    	newSignature := getSignature(signingKey, stringToSign)
    
    	return newSignature
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/Kerb5ContextTest.java

        void getNetbiosName_null() {
            assertNull(ctx.getNetbiosName());
        }
    
        @Test
        @DisplayName("getSigningKey throws when ExtendedGSSContext not implemented")
        void getSigningKey_notImplementedByGSSContext() {
            SmbException ex = assertThrows(SmbException.class, () -> ctx.getSigningKey());
            assertTrue(ex.getMessage().contains("ExtendedGSSContext is not implemented"));
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
Back to top