110111112113114115116117118119
if(mechToken!=null){ int result = NegTokenTarg.ACCEPT_INCOMPLETE; if(context.isEstablished()){ result = NegTokenTarg.ACCEPT_COMPLETED; } ret = new NegTokenTarg(result, context.getMech().toString(), mechToken, null).toByteArray(); } } return ret; }
142143144145146147148149150151152
switch (token[0]) { case (byte) 0x60: spnegoToken = new NegTokenInit(token); break; case (byte) 0xa1: spnegoToken = new NegTokenTarg(token); break; default: throw new GSSException(GSSException.DEFECTIVE_TOKEN); } return spnegoToken;