- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 194 for getJdk (0.2 sec)
-
compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java
if (!minProfileIds.add(profile.getId())) { addViolation( problems, Severity.WARNING, Version.BASE, "profiles.profile.id", null, "Duplicate activation for profile " + profile.getId(), profile);
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 03 15:06:05 UTC 2025 - 66.8K bytes - Viewed (0) -
src/test/java/jcifs/util/CryptoTest.java
void testHashVariousInputSizes(String input) { // Given byte[] data = input.getBytes(); // When MessageDigest md4 = Crypto.getMD4(); MessageDigest md5 = Crypto.getMD5(); byte[] md4Hash = md4.digest(data); byte[] md5Hash = md5.digest(data); // Then assertNotNull(md4Hash); assertNotNull(md5Hash);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/main/java/jcifs/util/Crypto.java
*/ public static MessageDigest getMD4() { try { return MessageDigest.getInstance("MD4", getProvider()); } catch (final NoSuchAlgorithmException e) { throw new CIFSUnsupportedCryptoException(e); } } /** * Get an MD5 message digest instance. * @return MD5 digest instance */ public static MessageDigest getMD5() { try {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/util/HMACT64Test.java
@Mock private MessageDigest mockMd5; @BeforeEach void setUp() throws NoSuchAlgorithmException { // Mock Crypto.getMD5() to return our mockMd5 instance // This requires Mockito 3.4.0+ for MockedStatic // For simplicity, we'll assume Crypto.getMD5() is static and mock it. // If it's not static, we'd need to inject it or mock the class that provides it.Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmUtil.java
public static byte[] getNTHash(final String password) { if (password == null) { throw new NullPointerException("Password parameter is required"); } final MessageDigest md4 = Crypto.getMD4(); md4.update(Strings.getUNIBytes(password)); return md4.digest(); } /** * Generates the NT password hash for the given password.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/validation/DefaultSettingsValidator.java
if (!serverIds.add(server.getId())) { addViolation( problems, Severity.WARNING, "servers.server.id", null, "must be unique but found duplicate server with id " + server.getId()); } }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jul 23 17:27:08 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacSidAttributesTest.java
assertEquals(sidMock, pacSidAttributes.getId(), "The SID should match the one provided in the constructor."); assertEquals(attributes, pacSidAttributes.getAttributes(), "The attributes should match the ones provided in the constructor."); } /** * Test method for {@link jcifs.pac.PacSidAttributes#getId()}. */ @Test void testGetId() { // Test the getId method
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.6K bytes - Viewed (0) -
tests/test_security_scopes.py
@pytest.fixture(name="app") def app_fixture(call_counter: dict[str, int]): def get_db(): call_counter["count"] += 1 return f"db_{call_counter['count']}" def get_user(db: Annotated[str, Depends(get_db)]): return "user" app = FastAPI() @app.get("/") def endpoint( db: Annotated[str, Depends(get_db)], user: Annotated[str, Security(get_user, scopes=["read"])], ):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 1006 bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial010.py
from fastapi import Depends, FastAPI from fastapi.testclient import TestClient from docs_src.dependencies.tutorial010_py39 import get_db def test_get_db(): app = FastAPI() @app.get("/") def read_root(c: Annotated[Any, Depends(get_db)]): return {"c": str(c)} client = TestClient(app) dbsession_mock = Mock() with patch(
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 688 bytes - Viewed (0) -
src/test/java/jcifs/pac/PacGroupTest.java
assertEquals(mockSid, pacGroup.getId(), "The SID should be correctly set in the constructor."); assertEquals(attributes, pacGroup.getAttributes(), "The attributes should be correctly set in the constructor."); } /** * Test method for {@link jcifs.pac.PacGroup#getId()}. */ @Test void testGetId() { // Test the getId method
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.5K bytes - Viewed (0)