public interface GSSContext
Encapsulates a GSS context, i.e. an implementation of the
GSS API. This is used by
UserAuthGSSAPIWithMIC to do the
actual cryptographic work. (See this class for a description on how this
interface is used.)
This interface only contains the methods needed for GSS-API authentication, not the full GSS API.
An implementation of this interface is included in the JSch library,
based on the GSS API included in the
Java SE from 1.4 on, using object ID
Kerberos v5 as defined in RFC 1964.
GSSContext, RFC 2743, Generic Security Service Application Program Interface Version 2, Update 1, RFC 5653: Generic Security Service API Version 2: Java Bindings Update, RFC 4462: Generic Security Service Application Program Interface (GSS-API) Authentication and Key Exchange for the Secure Shell (SSH) Protocol, RFC 1964, The Kerberos Version 5 GSS-API Mechanism
|Modifier and Type||Method and Description|
creates the context.
Disposes this context, releasing any system resources and stored cryptographic information.
calculates a Message Integrity Code for a message.
Tries to establish the secure context by processing a token from the server and (maybe) creating a new token to send to the server.
Checks is the context establishing already succeeded.
void create(String user, String host) throws JSchException
byte init(byte token, int s, int l) throws JSchException
token- an array containing the token received from the server. At the start, this will be an empty array.
s- the index in
tokenwhere the token actually starts.
l- the length of the token.
byte getMIC(byte message, int s, int l)
message- an array containing the message for which the the code should be calculated.
s- the index in
messagewhere the message actually starts
l- the length of the message.
This is an inofficial Javadoc created by Paŭlo Ebermann. Have a look at the official homepage.