Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for ASN1ObjectIdentifier (0.28 sec)

  1. src/test/java/jcifs/spnego/NegTokenInitTest.java

    class NegTokenInitTest {
    
        // Common OIDs used in tests
        private static final ASN1ObjectIdentifier OID_KRB = new ASN1ObjectIdentifier(SpnegoConstants.KERBEROS_MECHANISM);
        private static final ASN1ObjectIdentifier OID_KRB_LEGACY = new ASN1ObjectIdentifier(SpnegoConstants.LEGACY_KERBEROS_MECHANISM);
        private static final ASN1ObjectIdentifier OID_NTLM = new ASN1ObjectIdentifier(SpnegoConstants.NTLMSSP_MECHANISM);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SpnegoContext.java

        private boolean firstResponse = true;
        private boolean completed;
    
        private ASN1ObjectIdentifier[] mechs;
        private ASN1ObjectIdentifier selectedMech;
        private ASN1ObjectIdentifier[] remoteMechs;
    
        private final boolean disableMic;
        private boolean requireMic;
    
        /**
         * Instance a <code>SpnegoContext</code> object by wrapping a {@link SSPContext}
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SSPContextTest.java

                // Arrange
                ASN1ObjectIdentifier mech1 = new ASN1ObjectIdentifier("1.2.840.113554.1.2.2"); // Kerberos V5
                ASN1ObjectIdentifier mech2 = new ASN1ObjectIdentifier("1.3.6.1.5.5.2"); // SPNEGO
                DummySSPContext ctx =
                        new DummySSPContext(new byte[] { 1, 2, 3 }, true, "NBHOST", new ASN1ObjectIdentifier[] { mech1, mech2 }, 0xA5, true);
    
                // Act & Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/spnego/NegTokenInit.java

        /**
         * Context flag for integrity (signing) capability
         */
        public static final int INTEGRITY = 0x02;
    
        private static final ASN1ObjectIdentifier SPNEGO_OID = new ASN1ObjectIdentifier(SpnegoConstants.SPNEGO_MECHANISM);
    
        private ASN1ObjectIdentifier[] mechanisms;
    
        private int contextFlags;
    
        /**
         * Default constructor for NegTokenInit
         */
        public NegTokenInit() {
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/Kerb5Context.java

        private static final ASN1ObjectIdentifier KRB5_MECH_OID;
        private static final ASN1ObjectIdentifier KRB5_MS_MECH_OID;
        static final ASN1ObjectIdentifier[] SUPPORTED_MECHS;
        private static final Oid JGSS_KRB5_NAME_OID;
        private static final Oid JGSS_KRB5_MECH_OID;
    
        static {
            KRB5_MECH_OID = new ASN1ObjectIdentifier("1.2.840.113554.1.2.2");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13.5K bytes
    - Viewed (1)
  6. src/test/java/jcifs/smb/SpnegoContextTest.java

        SSPContext mechContext;
    
        private ASN1ObjectIdentifier[] mechs;
    
        @BeforeEach
        void setup() {
            // Default: do not enforce or disable SPNEGO integrity
            when(this.config.isEnforceSpnegoIntegrity()).thenReturn(false);
            when(this.config.isDisableSpnegoIntegrity()).thenReturn(false);
            this.mechs = new ASN1ObjectIdentifier[] { new ASN1ObjectIdentifier("1.2.3.4") };
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/kerberos/KerberosTokenTest.java

            // Create inner content with OID and magic bytes but wrong tag after
            ByteArrayOutputStream innerContent = new ByteArrayOutputStream();
            ASN1ObjectIdentifier kerberosOid = new ASN1ObjectIdentifier(KerberosConstants.KERBEROS_OID);
            innerContent.write(kerberosOid.getEncoded());
            innerContent.write(0x01); // magic byte 1
            innerContent.write(0x00); // magic byte 2
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/MIENameTest.java

            }
    
            @Test
            void notEqualWhenOidDiffersOrNameNullityDiffers() {
                MIEName a = new MIEName(new ASN1ObjectIdentifier("1.2.3"), "X");
                MIEName b = new MIEName(new ASN1ObjectIdentifier("1.2.4"), "X");
                MIEName c = new MIEName(new ASN1ObjectIdentifier("1.2.3"), null);
                assertNotEquals(a, b);
                assertNotEquals(a, c);
                assertNotEquals(a, new Object());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/spnego/NegTokenTarg.java

         * @return the mechanism OID
         */
        public ASN1ObjectIdentifier getMechanism() {
            return this.mechanism;
        }
    
        /**
         * Sets the selected authentication mechanism OID
         * @param mechanism the mechanism OID to set
         */
        public void setMechanism(final ASN1ObjectIdentifier mechanism) {
            this.mechanism = mechanism;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java

            Kerb5Authenticator auth = new Kerb5Authenticator((Subject) null);
    
            // Build a token with an arbitrary non-kerberos mechanism OID
            ASN1ObjectIdentifier unsupported = new ASN1ObjectIdentifier("1.2.3.4.5");
            byte[] init = spnegoInitWithMechs(unsupported);
    
            // Host is a FQDN to pass the short-name check
            SmbUnsupportedOperationException ex =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top