Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for SpnegoToken (0.07 sec)

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

    import java.io.IOException;
    
    /**
     * Abstract base class for SPNEGO authentication tokens used in GSS-API negotiation
     */
    public abstract class SpnegoToken {
    
        /**
         * Protected constructor for SPNEGO token implementations.
         */
        protected SpnegoToken() {
        }
    
        private byte[] mechanismToken;
    
        private byte[] mechanismListMIC;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SpnegoContext.java

            SpnegoToken spnegoToken = null;
            try {
                spnegoToken = switch (token[0]) {
                case (byte) 0x60 -> new NegTokenInit(token);
                case (byte) 0xa1 -> new NegTokenTarg(token);
                default -> throw new SpnegoException("Invalid token type");
                };
                return spnegoToken;
            } catch (final IOException e) {
                throw new SpnegoException("Invalid token");
            }
    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/spnego/SpnegoTokenTest.java

    /**
     * Tests for SpnegoToken.
     * Uses a minimal concrete subclass to exercise abstract methods.
     */
    class SpnegoTokenTest {
    
        /**
         * Minimal concrete implementation for testing.
         * - parse: sets mechanismToken, throws on null
         * - toByteArray: returns mechanismToken or empty array if null
         */
        static class TestSpnegoToken extends SpnegoToken {
            private boolean parsed = false;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/spnego/NegTokenTarg.java

    import org.bouncycastle.asn1.DERSequence;
    import org.bouncycastle.asn1.DERTaggedObject;
    
    /**
     * SPNEGO response token (NegTokenTarg) used in SPNEGO authentication exchanges
     */
    public class NegTokenTarg extends SpnegoToken {
    
        /**
         * Result code indicating unspecified result
         */
        public static final int UNSPECIFIED_RESULT = -1;
        /**
         * Result code indicating authentication completed successfully
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/spnego/NegTokenInit.java

    import org.bouncycastle.asn1.DERSequence;
    import org.bouncycastle.asn1.DERTaggedObject;
    
    import jcifs.util.Hexdump;
    
    /**
     * SPNEGO initial token
     */
    public class NegTokenInit extends SpnegoToken {
    
        /**
         * Context flag for delegation capability
         */
        public static final int DELEGATION = 0x80;
        /**
         * Context flag for mutual authentication requirement
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
Back to top