Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 112 for mechanism (0.04 sec)

  1. src/main/java/jcifs/spnego/SpnegoConstants.java

     */
    
    package jcifs.spnego;
    
    /**
     * Constants for SPNEGO authentication mechanism OIDs used in GSS-API negotiations
     */
    public interface SpnegoConstants {
    
        /**
         * OID for the SPNEGO mechanism
         */
        String SPNEGO_MECHANISM = "1.3.6.1.5.5.2";
    
        /**
         * OID for the Kerberos v5 mechanism
         */
        String KERBEROS_MECHANISM = "1.2.840.113554.1.2.2";
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/spnego/NegTokenInitTest.java

            @DisplayName("Various mechanism combinations round-trip correctly")
            void testMechanismCombinations(ASN1ObjectIdentifier[] mechanisms) throws Exception {
                NegTokenInit init = new NegTokenInit(mechanisms, 0, null, null);
                byte[] encoded = init.toByteArray();
                NegTokenInit parsed = new NegTokenInit(encoded);
    
                if (mechanisms == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SpnegoContext.java

            // prevent nesting
            return false;
        }
    
        /**
         * Determines what mechanism is being used for this context.
         *
         * @return the Oid of the mechanism being used
         */
        ASN1ObjectIdentifier[] getMechs() {
            return this.mechs;
        }
    
        /**
         * @return the mechanisms announced by the remote end
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/spnego/SpnegoToken.java

        private byte[] mechanismListMIC;
    
        /**
         * Gets the inner mechanism token wrapped in this SPNEGO token
         * @return the mechanism token bytes
         */
        public byte[] getMechanismToken() {
            return this.mechanismToken;
        }
    
        /**
         * Sets the inner mechanism token to be wrapped in this SPNEGO token
         * @param mechanismToken the mechanism token bytes
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SSPContext.java

        /**
         * Checks whether the specified security mechanism is supported.
         * @param mechanism the security mechanism OID to check
         * @return whether the specified mechanism is supported
         */
        boolean isSupported(ASN1ObjectIdentifier mechanism);
    
        /**
         * Checks whether the specified mechanism is the preferred mechanism.
         * @param selectedMech the selected mechanism OID
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/spnego/NegTokenInit.java

         * Gets the array of supported authentication mechanisms
         * @return the mechanisms array
         */
        public ASN1ObjectIdentifier[] getMechanisms() {
            return this.mechanisms;
        }
    
        /**
         * Sets the array of supported authentication mechanisms
         * @param mechanisms the mechanisms to set
         */
        public void setMechanisms(final ASN1ObjectIdentifier[] mechanisms) {
            this.mechanisms = mechanisms;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/NtlmContext.java

            return NTLMSSP_OID.equals(mechanism);
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SSPContext#isPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier)
         */
        @Override
        public boolean isPreferredMech(final ASN1ObjectIdentifier mechanism) {
            return this.auth.isPreferredMech(mechanism);
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/spnego/NegTokenTarg.java

        /**
         * Gets the selected authentication mechanism OID
         * @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;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SpnegoContextTest.java

        @DisplayName("getFlags delegates to underlying mechanism context")
        void testGetFlagsDelegates() {
            SpnegoContext ctx = newContext();
            when(this.mechContext.getFlags()).thenReturn(0xCAFE);
            assertEquals(0xCAFE, ctx.getFlags());
            verify(this.mechContext, times(1)).getFlags();
        }
    
        @Test
        @DisplayName("dispose 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)
  10. src/test/java/jcifs/smb/SSPContextTest.java

                this.established = false;
            }
    
            @Override
            public boolean isSupported(ASN1ObjectIdentifier mechanism) {
                if (mechanism == null) {
                    return false;
                }
                for (ASN1ObjectIdentifier m : this.supportedMechs) {
                    if (mechanism.equals(m)) {
                        return true;
                    }
                }
                return false;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.2K bytes
    - Viewed (0)
Back to top