- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for getSigningKey (0.19 seconds)
-
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")); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.2K bytes - Click Count (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))
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Dec 13 22:19:12 GMT 2024 - 12.4K bytes - Click Count (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
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.5K bytes - Click Count (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 ExtendedGSSContextCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 13.5K bytes - Click Count (1) -
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 }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 18.2K bytes - Click Count (0) -
cmd/signature-v4_test.go
fmt.Sprintf(credentialTemplate, accessKey, now.Format(yyyymmdd), globalMinioDefaultRegion), }, "X-Amz-Date": []string{now.Format(iso8601Format)}, "X-Amz-Signature": []string{ getSignature(getSigningKey(globalActiveCred.SecretKey, now, globalMinioDefaultRegion, serviceS3), "policy"), }, "Policy": []string{"policy"}, }, expected: ErrNone, }, } // Run each test case individually.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 10.5K bytes - Click Count (0) -
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
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.2K bytes - Click Count (0) -
src/main/java/jcifs/smb/NtlmContext.java
* @return the server's challenge */ public byte[] getServerChallenge() { return this.serverChallenge; } @Override public byte[] getSigningKey() { return this.masterKey; } @Override public String getNetbiosName() { return this.netbiosName; } /**
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 17.3K bytes - Click Count (1) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
* @param chlng the server challenge * @return the signing key * @throws SmbException if an SMB error occurs * @throws GeneralSecurityException if a security error occurs */ public byte[] getSigningKey(CIFSContext tc, byte[] chlng) throws SmbException, GeneralSecurityException { switch (tc.getConfig().getLanManCompatibility()) { case 0: case 1: case 2:Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 30.3K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java
* * @param challenge the server challenge bytes * @return the signing key * @throws SmbException if an error occurs generating the signing key */ public byte[] getSigningKey(final byte[] challenge) throws SmbException { switch (LM_COMPATIBILITY) { case 0: case 1: case 2: final byte[] signingKey = new byte[40];Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 26.7K bytes - Click Count (0)