Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for mechs (0.04 sec)

  1. src/test/java/jcifs/smb/SpnegoContextTest.java

        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));
            verify(this.mechContext, times(1)).isPreferredMech(mech);
        }
    
        @Test
        @DisplayName("getFlags delegates to underlying mechanism context")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/spnego/NegTokenTargTest.java

            // Arrange – create a fully populated token
            ASN1ObjectIdentifier mech = new ASN1ObjectIdentifier("1.2.840.113554.1.2.2");
            byte[] tokenArray = new byte[] { 1, 2, 3 };
            byte[] mic = new byte[] { 9, 9, 9 };
            NegTokenTarg original = new NegTokenTarg(NegTokenTarg.ACCEPT_COMPLETED, mech, tokenArray, mic);
    
            // Act – serialise and parse back
            byte[] bytes = original.toByteArray();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/spnego/NegTokenTarg.java

                    fields.add(new DERTaggedObject(true, 0, new ASN1Enumerated(res)));
                }
                final ASN1ObjectIdentifier mech = getMechanism();
                if (mech != null) {
                    fields.add(new DERTaggedObject(true, 1, mech));
                }
                final byte[] mechanismToken = getMechanismToken();
                if (mechanismToken != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.9K bytes
    - Viewed (0)
Back to top