- Sort Score
- Num 10 results
- Language All
Results 1 - 9 of 9 for mechs (0.02 seconds)
-
src/main/java/jcifs/smb/SpnegoContext.java
* * @param source * the {@link SSPContext} to be wrapped * @param mech * the mechanism is being used for this context. */ SpnegoContext(final Configuration config, final SSPContext source, final ASN1ObjectIdentifier[] mech) { this.mechContext = source; this.mechs = mech; this.disableMic = !config.isEnforceSpnegoIntegrity() && config.isDisableSpnegoIntegrity();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/test/java/jcifs/spnego/NegTokenInitTest.java
private static byte[] buildInitToken(ASN1ObjectIdentifier[] mechs, Integer flags, byte[] mechToken, byte[] mic, boolean micInTag4, String spnegoOidOverride, Integer outerTagNoOverride, ASN1TaggedObject extraField) throws IOException { ASN1EncodableVector fields = new ASN1EncodableVector(); if (mechs != null) { ASN1EncodableVector v = new ASN1EncodableVector();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21K bytes - Click Count (0) -
src/main/java/jcifs/spnego/NegTokenInit.java
final ASN1ObjectIdentifier[] mechs = new ASN1ObjectIdentifier[sequence.size()]; for (int i = mechs.length - 1; i >= 0; i--) { mechs[i] = (ASN1ObjectIdentifier) sequence.getObjectAt(i); } setMechanisms(mechs); break; case 1:
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 10.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java
@Mock CIFSContext tc; @Mock Configuration config; private static byte[] spnegoInitWithMechs(ASN1ObjectIdentifier... mechs) { // Build a minimal SPNEGO NegTokenInit containing the provided mechanisms NegTokenInit tok = new NegTokenInit(mechs, 0, null, null); return tok.toByteArray(); } @Test @DisplayName("createContext: rejects NetBIOS/short host names")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
} @Test @DisplayName("getSupportedMechs returns expected array") void getSupportedMechs_happyPath() { ASN1ObjectIdentifier[] mechs = ctx.getSupportedMechs(); assertNotNull(mechs); assertArrayEquals(Kerb5Context.SUPPORTED_MECHS, mechs); } @Test @DisplayName("getFlags with all false yields 0") void getFlags_allFalse() {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/Kerb5Authenticator.java
} if (tok.getMechanisms() != null) { Set<ASN1ObjectIdentifier> mechs = new HashSet<>(Arrays.asList(tok.getMechanisms())); boolean foundKerberos = false; for (ASN1ObjectIdentifier mech : Kerb5Context.SUPPORTED_MECHS) { foundKerberos |= mechs.contains(mech); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 13.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SSPContextTest.java
assertTrue(ctx.isSupported(mech1), "mech1 supported"); assertTrue(ctx.isPreferredMech(mech1), "first supported is preferred"); assertArrayEquals(new ASN1ObjectIdentifier[] { mech1, mech2 }, ctx.getSupportedMechs(), "supported mechs"); // MIC roundtrip: calculate then verify byte[] data = new byte[] { 10, 20, 30 };Created: 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/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
log.debug("Have initial token " + tok); } if (tok.getMechanisms() != null) { Set<ASN1ObjectIdentifier> mechs = new HashSet<>(Arrays.asList(tok.getMechanisms())); if (!mechs.contains(NtlmContext.NTLMSSP_OID)) { throw new SmbUnsupportedOperationException("Server does not support NTLM authentication"); }
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/main/java/jcifs/smb/Kerb5Context.java
ASN1ObjectIdentifier mech = ASN1ObjectIdentifier.getInstance(this.gssContext.getMech().getDER()); for (KerberosTicket ticket : subject.getPrivateCredentials(KerberosTicket.class)) { MIEName client = new MIEName(mech, ticket.getClient().getName()); MIEName server = new MIEName(mech, ticket.getServer().getName());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 13.5K bytes - Click Count (1)