- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for isPreferredMech (0.09 sec)
-
src/test/java/jcifs/smb/SSPContextTest.java
assertFalse(empty.isSupported(new ASN1ObjectIdentifier("1.2.3"))); assertFalse(empty.isPreferredMech(new ASN1ObjectIdentifier("1.2.3"))); assertFalse(empty.isPreferredMech(null)); assertFalse(empty.isSupported(null)); assertEquals("", empty.getNetbiosName(), "supports empty NetBIOS name"); } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SpnegoContextTest.java
} @Test @DisplayName("isPreferredMech delegates to underlying mechanism context") void testIsPreferredMechDelegates() { SpnegoContext ctx = newContext(); ASN1ObjectIdentifier mech = new ASN1ObjectIdentifier("1.2.840.113554.1.2.2"); when(this.mechContext.isPreferredMech(mech)).thenReturn(true); assertTrue(ctx.isPreferredMech(mech));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SpnegoContext.java
} /** * {@inheritDoc} * * @see jcifs.smb.SSPContext#isPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier) */ @Override public boolean isPreferredMech(final ASN1ObjectIdentifier mech) { return this.mechContext.isPreferredMech(mech); } @Override public byte[] calculateMIC(final byte[] data) throws CIFSException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmContext.java
} /** * {@inheritDoc} * * @see jcifs.smb.SSPContext#isPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier) */ @Override public boolean isPreferredMech(final ASN1ObjectIdentifier mechanism) { return this.auth.isPreferredMech(mechanism); } @Override public boolean isEstablished() { return this.isEstablished; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 17.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java
void isPreferredMech_nonAnonymous(ASN1ObjectIdentifier oid, boolean expected) { Kerb5Authenticator auth = new Kerb5Authenticator(new Subject()); assertEquals(expected, auth.isPreferredMech(oid)); } static Object[][] preferredMechData_anonymous() { return new Object[][] { { NtlmContext.NTLMSSP_OID, true }, { Kerb5Context.SUPPORTED_MECHS[0], false } }; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/Kerb5Authenticator.java
} /** * {@inheritDoc} * * @see jcifs.smb.NtlmPasswordAuthenticator#isPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier) */ @Override public boolean isPreferredMech(ASN1ObjectIdentifier mechanism) { if (isAnonymous()) { return super.isPreferredMech(mechanism); } return PREFERRED_MECHS.contains(mechanism); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 13.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SSPContext.java
/** * Checks whether the specified mechanism is the preferred mechanism. * @param selectedMech the selected mechanism OID * @return whether the specified mechanism is preferred */ boolean isPreferredMech(ASN1ObjectIdentifier selectedMech); /** * Gets the negotiated context flags. * @return context flags */ int getFlags(); /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/Kerb5Context.java
} /** * {@inheritDoc} * * @see jcifs.smb.SSPContext#isPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier) */ @Override public boolean isPreferredMech(ASN1ObjectIdentifier mechanism) { return isSupported(mechanism); } /** * {@inheritDoc} *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13.5K bytes - Viewed (1) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
assertTrue(ctx.isSupported(oid)); assertTrue(ctx.isPreferredMech(oid)); } @Test @DisplayName("isSupported returns false for null/unknown OIDs") void isSupported_unknownOrNull() { assertFalse(ctx.isSupported(null)); assertFalse(ctx.isPreferredMech(null)); assertFalse(ctx.isSupported(new ASN1ObjectIdentifier("1.3.6.1.4.1.99999"))); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
* * @param mechanism the mechanism to check * @return whether the given mechanism is the preferred one for this credential */ public boolean isPreferredMech(ASN1ObjectIdentifier mechanism) { return NtlmContext.NTLMSSP_OID.equals(mechanism); } /** * Computes the 24 byte ANSI password hash given the 8 byte server challenge. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30.3K bytes - Viewed (0)