- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for mechs (0.01 sec)
-
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();
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/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:
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 10.3K bytes - Viewed (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();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (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")
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/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() {
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/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); }
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/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 };
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/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"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30.3K bytes - Viewed (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());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13.5K bytes - Viewed (1)