public class

NegotiatorImpl

extends Object
java.lang.Object
   ↳ sun.net.www.protocol.http.NegotiatorImpl

Class Overview

This class encapsulates all JAAS and JGSS API calls in a seperate class outside NegotiateAuthentication.java so that J2SE build can go smoothly without the presence of it.

Summary

Public Constructors
NegotiatorImpl(String hostname, String scheme)
Constructor
Public Methods
byte[] firstToken()
Return the first token of GSS, in SPNEGO, it's called NegTokenInit
byte[] nextToken(byte[] token)
Return the rest tokens of GSS, in SPNEGO, it's called NegTokenTarg
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public NegotiatorImpl (String hostname, String scheme)

Constructor

Parameters
hostname name of peer server
scheme auth scheme requested, Negotiate ot Kerberos
Throws
IOException If negotiator cannot be constructed

Public Methods

public byte[] firstToken ()

Return the first token of GSS, in SPNEGO, it's called NegTokenInit

Returns
  • the first token

public byte[] nextToken (byte[] token)

Return the rest tokens of GSS, in SPNEGO, it's called NegTokenTarg

Parameters
token the token received from server
Returns
  • the next token
Throws
IOException if the token cannot be created successfully