Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for setMechanism (0.18 sec)

  1. 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)
  2. 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)
  3. src/main/java/jcifs/spnego/NegTokenInit.java

         */
        public NegTokenInit(final ASN1ObjectIdentifier[] mechanisms, final int contextFlags, final byte[] mechanismToken,
                final byte[] mechanismListMIC) {
            setMechanisms(mechanisms);
            setContextFlags(contextFlags);
            setMechanismToken(mechanismToken);
            setMechanismListMIC(mechanismListMIC);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SpnegoContext.java

                if (this.firstResponse) {
                    if (!this.mechContext.isSupported(targ.getMechanism())) {
                        throw new SmbException("Server chose an unsupported mechanism " + targ.getMechanism());
                    }
                    this.selectedMech = targ.getMechanism();
                    if (targ.getResult() == NegTokenTarg.REQUEST_MIC) {
                        this.requireMic = true;
    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