- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 36 for GeneralSecurityException (0.17 seconds)
-
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
* Perform automatic key rotation using the stored session key following SMB3 key derivation * * @throws GeneralSecurityException if key rotation fails */ private void performAutomaticKeyRotation() throws GeneralSecurityException { if (sessionKey == null) { throw new GeneralSecurityException("Session key not available for automatic rotation"); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 35.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java
* @throws SmbException if an SMB protocol error occurs * @throws GeneralSecurityException if a security error occurs during authentication */ public SmbComSessionSetupAndX(final CIFSContext tc, final SmbComNegotiateResponse negotiated, final ServerMessageBlock andx, final Object cred) throws SmbException, GeneralSecurityException { super(tc.getConfig(), SMB_COM_SESSION_SETUP_ANDX, andx);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.9K bytes - Click Count (0) -
src/main/java/jcifs/util/SecureKeyManager.java
* @param context key derivation context * @param length desired key length in bytes * @return derived key * @throws GeneralSecurityException if key derivation fails */ public byte[] deriveKey(byte[] baseKey, String label, byte[] context, int length) throws GeneralSecurityException { checkNotClosed(); // Simple KDF implementation (should be replaced with proper KDF like HKDF)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 21.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
* @return the hash for the given challenge * @throws GeneralSecurityException if a security error occurs * @deprecated NTLMv1 is insecure. Use NTLMv2 (LM compatibility level 3 or higher) */ @Deprecated public byte[] getAnsiHash(CIFSContext tc, byte[] chlng) throws GeneralSecurityException { int compatibility = tc.getConfig().getLanManCompatibility();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/test/java/jcifs/util/SecureKeyManagerTest.java
import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import java.security.GeneralSecurityException; import java.security.SecureRandom; import java.util.Arrays; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
void testConstructorSmb202() throws GeneralSecurityException { Smb2SigningDigest digest = new Smb2SigningDigest(sessionKey, Smb2Constants.SMB2_DIALECT_0202, null); assertNotNull(digest); } @Test @DisplayName("Should create digest for SMB 2.1 with HmacSHA256") void testConstructorSmb210() throws GeneralSecurityException {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 43.7K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/Certificates.kt
* See the License for the specific language governing permissions and * limitations under the License. */ @file:JvmName("Certificates") package okhttp3.tls import java.security.GeneralSecurityException import java.security.cert.CertificateFactory import java.security.cert.X509Certificate import okio.Buffer import okio.ByteString import okio.ByteString.Companion.toByteString /**Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2.8K bytes - Click Count (0) -
src/test/java/jcifs/pac/kerberos/KerberosTicketTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.when; import java.io.IOException; import java.math.BigInteger; import java.security.GeneralSecurityException; import javax.security.auth.kerberos.KerberosKey; import org.bouncycastle.asn1.ASN1EncodableVector; import org.bouncycastle.asn1.ASN1Integer; import org.bouncycastle.asn1.BERTags;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.4K bytes - Click Count (0) -
src/test/java/jcifs/util/SecureCredentialStorageTest.java
encrypted[encrypted.length - 1] ^= 0xFF; // Should throw exception due to authentication tag failure assertThrows(GeneralSecurityException.class, () -> { storage.decryptCredentials(encrypted); }, "Should throw GeneralSecurityException when decrypting tampered data"); // Clean up Arrays.fill(plaintext, '\0'); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12.7K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.tls.internal.der import java.math.BigInteger import java.security.GeneralSecurityException import java.security.PublicKey import java.security.Signature import java.security.SignatureException import java.security.cert.CertificateFactory import java.security.cert.X509Certificate import okio.Buffer
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 6.4K bytes - Click Count (0)