Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for ASN1ObjectIdentifier (1.12 sec)

  1. 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)
  2. src/main/java/jcifs/smb/Kerb5Authenticator.java

        private boolean canFallback = false;
        /** Flag to force fallback authentication */
        private boolean forceFallback;
    
        static {
            PREFERRED_MECHS.add(new ASN1ObjectIdentifier("1.2.840.113554.1.2.2"));
            PREFERRED_MECHS.add(new ASN1ObjectIdentifier("1.2.840.48018.1.2.2"));
        }
    
        /**
         * Construct a <code>Kerb5Authenticator</code> object with <code>Subject</code>
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/NtlmContext.java

         * @see jcifs.smb.SSPContext#isSupported(org.bouncycastle.asn1.ASN1ObjectIdentifier)
         */
        @Override
        public boolean isSupported(final ASN1ObjectIdentifier mechanism) {
            return NTLMSSP_OID.equals(mechanism);
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.SSPContext#isPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier)
         */
        @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)
  4. src/test/java/jcifs/spnego/NegTokenTargTest.java

    class NegTokenTargTest {
    
        @Test
        @DisplayName("happy path – full token round‑trip")
        void testRoundTripFull() throws IOException {
            // 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 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SSPContext.java

         */
        boolean isSupported(ASN1ObjectIdentifier mechanism);
    
        /**
         * Checks whether the specified mechanism is the preferred mechanism.
         * @param selectedMech the selected mechanism OID
         * @return whether the specified mechanism is preferred
         */
        boolean isPreferredMech(ASN1ObjectIdentifier selectedMech);
    
        /**
         * Gets the negotiated context flags.
    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/pac/kerberos/KerberosToken.java

                throw new PACDecodingException("Malformed kerberos token", e);
            }
    
            try (ASN1InputStream stream = new ASN1InputStream(content)) {
    
                ASN1ObjectIdentifier kerberosOid = (ASN1ObjectIdentifier) stream.readObject();
                if (!kerberosOid.getId().equals(KerberosConstants.KERBEROS_OID)) {
                    throw new PACDecodingException("Not a kerberos token");
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/Kerb5ContextTest.java

            f.setAccessible(true);
            f.set(target, value);
        }
    
        static ASN1ObjectIdentifier[] supportedMechs() {
            return Kerb5Context.SUPPORTED_MECHS;
        }
    
        @ParameterizedTest
        @MethodSource("supportedMechs")
        @DisplayName("isSupported returns true for supported OIDs")
        void isSupported_supportedOids(ASN1ObjectIdentifier oid) {
            assertTrue(ctx.isSupported(oid));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

    import java.util.Arrays;
    import java.util.HashSet;
    import java.util.Map;
    import java.util.Objects;
    import java.util.Set;
    
    import javax.security.auth.Subject;
    
    import org.bouncycastle.asn1.ASN1ObjectIdentifier;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.CIFSContext;
    import jcifs.CIFSException;
    import jcifs.Credentials;
    import jcifs.RuntimeCIFSException;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
Back to top