GSIMech (Java Globus API)

org.globus.mds.gsi.netscape
Class GSIMech

java.lang.Object
  |
  +--org.globus.mds.gsi.common.GSIMechanism
        |
        +--org.globus.mds.gsi.netscape.GSIMech

public class GSIMech
extends GSIMechanism


Field Summary
 
Fields inherited from class org.globus.mds.gsi.common.GSIMechanism
allQop, completed, debug, HIGH_STRENGTH, INTEGRITY_ONLY_PROTECTION, LOW_STRENGTH, MAX_BUFFER, MAX_SEND_BUF, MEDIUM_STRENGTH, myIn, myOut, NAME, NAME2, NO_PROTECTION, PRIVACY_PROTECTION, PROXY, qop, QOP, recvMaxBufSize, sendMaxBufSize, sslThread, strength, STRENGTH
 
Constructor Summary
GSIMech(java.lang.String authzID, java.lang.String protocol, java.lang.String serverName, java.util.Map props, javax.security.auth.callback.CallbackHandler cbh)
           
 
Method Summary
 byte[] createInitialResponse()
          Netscape specific function.
 byte[] evaluateChallenge(byte[] challengeData)
          Processes the challenge data.
 
Methods inherited from class org.globus.mds.gsi.common.GSIMechanism
combineMasks, findPreferredMask, getInputStream, getMechanismName, getOutputStream, getRecvMaxBufSize, getSendMaxBufSize, init, intToNetworkByteOrder, isComplete, networkByteOrderToInt, parseProp, parseQop, parseQop, parseStrength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GSIMech

public GSIMech(java.lang.String authzID,
               java.lang.String protocol,
               java.lang.String serverName,
               java.util.Map props,
               javax.security.auth.callback.CallbackHandler cbh)
        throws SaslException
Method Detail

createInitialResponse

public byte[] createInitialResponse()
                             throws SaslException
Netscape specific function.

SaslException

evaluateChallenge

public byte[] evaluateChallenge(byte[] challengeData)
                         throws SaslException
Processes the challenge data. The server sends a challenge data using which the client must process using GSS_Init_sec_context. As per RFC 2222, when GSS_S_COMPLETE is returned, we do an extra handshake to determine the negotiated security protection and buffer sizes.

Parameters:
challengeData - A non-null byte array containing the challenge data from the server.
Returns:
A non-null byte array containing the response to be sent to the server.
SaslException