- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for getSigningKey (0.63 sec)
-
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")); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.2K bytes - Viewed (0) -
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(); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
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) -
cmd/signature-v4.go
canonicalRequestBytes := sha256.Sum256([]byte(canonicalRequest)) stringToSign += hex.EncodeToString(canonicalRequestBytes[:]) return stringToSign } // getSigningKey hmac seed to calculate final signature. func getSigningKey(secretKey string, t time.Time, region string, stype serviceType) []byte { date := sumHMAC([]byte("AWS4"+secretKey), []byte(t.Format(yyyymmdd))) regionBytes := sumHMAC(date, []byte(region))
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Dec 13 22:19:12 UTC 2024 - 12.4K bytes - Viewed (0) -
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) -
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) -
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) -
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 ExtendedGSSContextRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13.5K bytes - Viewed (1) -
src/main/java/jcifs/smb/SmbSessionImpl.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 68.9K bytes - Viewed (0) -
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)