Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for setMechanisms (0.09 sec)

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

         * @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)
  2. src/test/java/jcifs/spnego/NegTokenInitTest.java

                NegTokenInit parsed = new NegTokenInit(encoded);
    
                if (mechanisms == null) {
                    assertNull(parsed.getMechanisms());
                } else {
                    assertArrayEquals(mechanisms, parsed.getMechanisms());
                }
            }
    
            static Stream<Arguments> provideMechanismCombinations() {
    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/spnego/NegTokenTarg.java

         */
        public NegTokenTarg(final int result, final ASN1ObjectIdentifier mechanism, final byte[] mechanismToken,
                final byte[] mechanismListMIC) {
            setResult(result);
            setMechanism(mechanism);
            setMechanismToken(mechanismToken);
            setMechanismListMIC(mechanismListMIC);
        }
    
        /**
         * Constructs a NegTokenTarg by parsing the provided token bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/Kerb5Authenticator.java

                if (log.isDebugEnabled()) {
                    log.debug("Have initial token " + tok);
                }
                if (tok.getMechanisms() != null) {
                    Set<ASN1ObjectIdentifier> mechs = new HashSet<>(Arrays.asList(tok.getMechanisms()));
                    boolean foundKerberos = false;
                    for (ASN1ObjectIdentifier mech : Kerb5Context.SUPPORTED_MECHS) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/spnego/NegTokenTargTest.java

        void testEmptyMechanismToken() throws IOException {
            NegTokenTarg nt = new NegTokenTarg();
            nt.setResult(NegTokenTarg.REQUEST_MIC);
            nt.setMechanismToken(new byte[0]); // empty but non‑null
            nt.setMechanism(new ASN1ObjectIdentifier("2.16.840.1.101.3.6.1"));
            nt.setMechanismListMIC(null);
            byte[] bytes = nt.toByteArray();
            NegTokenTarg parsed = new NegTokenTarg(bytes);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

                    if (log.isDebugEnabled()) {
                        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)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SpnegoContext.java

            final SpnegoToken spToken = getToken(inputBuf, offset, len);
            byte[] inputToken = null;
            if (spToken instanceof final NegTokenInit tinit) {
                final ASN1ObjectIdentifier[] rm = tinit.getMechanisms();
                this.remoteMechs = rm;
                final ASN1ObjectIdentifier prefMech = rm[0];
                // only use token if the optimistic mechanism is supported
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.5K bytes
    - Viewed (0)
Back to top