- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for getSigningKey (0.23 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) -
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/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) -
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) -
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) -
src/main/java/jcifs/smb1/smb1/SmbSession.java
.treeConnect(null, null); } else { final byte[] signingKey = auth.getSigningKey(transport.server.encryptionKey); request.digest = new SigningDigest(signingKey, false); } }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 20.7K bytes - Viewed (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.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 10.5K bytes - Viewed (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; } /**
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 17.3K bytes - Viewed (1) -
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];Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 26.7K bytes - Viewed (0)