jdk/src/share/classes/sun/security/jgss/spnego/SpNegoContext.java
changeset 21278 ef8a3a2a72f2
parent 20473 801df8862d7a
child 21591 35320b590d9b
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
   539                 Oid mech_wanted =
   539                 Oid mech_wanted =
   540                         negotiate_mech_type(supported_mechSet, mechList);
   540                         negotiate_mech_type(supported_mechSet, mechList);
   541                 if (mech_wanted == null) {
   541                 if (mech_wanted == null) {
   542                     valid = false;
   542                     valid = false;
   543                 }
   543                 }
   544                 // save the desired mechansim
   544                 // save the desired mechanism
   545                 internal_mech = mech_wanted;
   545                 internal_mech = mech_wanted;
   546 
   546 
   547                 // get the token for mechanism
   547                 // get the token for mechanism
   548                 byte[] accept_token = GSS_acceptSecContext(mechToken);
   548                 byte[] accept_token = GSS_acceptSecContext(mechToken);
   549 
   549 
   739                 System.out.println("SpNegoContext: no MIC token included");
   739                 System.out.println("SpNegoContext: no MIC token included");
   740             }
   740             }
   741             return null;
   741             return null;
   742         }
   742         }
   743 
   743 
   744         // check if mechansim supports integrity
   744         // check if mechanism supports integrity
   745         if (!mechContext.getIntegState()) {
   745         if (!mechContext.getIntegState()) {
   746             if (DEBUG) {
   746             if (DEBUG) {
   747                 System.out.println("SpNegoContext: no MIC token included" +
   747                 System.out.println("SpNegoContext: no MIC token included" +
   748                         " - mechanism does not support integrity");
   748                         " - mechanism does not support integrity");
   749             }
   749             }
   781                 System.out.println("SpNegoContext: no MIC token validation");
   781                 System.out.println("SpNegoContext: no MIC token validation");
   782             }
   782             }
   783             return true;
   783             return true;
   784         }
   784         }
   785 
   785 
   786         // check if mechansim supports integrity
   786         // check if mechanism supports integrity
   787         if (!mechContext.getIntegState()) {
   787         if (!mechContext.getIntegState()) {
   788             if (DEBUG) {
   788             if (DEBUG) {
   789                 System.out.println("SpNegoContext: no MIC token validation" +
   789                 System.out.println("SpNegoContext: no MIC token validation" +
   790                         " - mechanism does not support integrity");
   790                         " - mechanism does not support integrity");
   791             }
   791             }