- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 17 for getSigningKey (0.1 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) -
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(); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (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(); /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 3.9K bytes - Click Count (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(); /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.9K 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) -
src/main/java/jcifs/smb1/smb1/NtlmContext.java
return serverChallenge; } /** * Gets the signing key for message authentication. * @return the signing key bytes */ public byte[] getSigningKey() { return signingKey; } /** * Gets the NetBIOS name of the remote server. * @return the NetBIOS name */ public String getNetbiosName() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 7K 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)