API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.ietf.jgss. GSSContext View Source
Author(s)
Mayank Upadhyay
Since
1.4
Version
1.10, 11/17/05
Serial
Hierarchy
 GSSContext
Subinterfaces
Description
public interface GSSContext
  This interface encapsulates the GSS-API security context and provides the security services that are available over the context.
See also:   
Methods
Hide/Show inherited methods
public byte acceptSecContext (byte[] inToken, int offset, int len) throws GSSException
  Called by the context acceptor upon receiving a token from the peer.
public void acceptSecContext (InputStream inStream, OutputStream outStream) throws GSSException
  Called by the context acceptor to process a token from the peer using streams.
public void dispose () throws GSSException
  Releases any system resources and cryptographic information stored in the context object and invalidates the context.
public byte export () throws GSSException
  Exports this context so that another process may import it..
public boolean getAnonymityState ()
  Determines if the context initiator is anonymously authenticated to the context acceptor.
public boolean getConfState ()
  Determines if data confidentiality is available over the context.
public boolean getCredDelegState ()
  Determines if credential delegation is enabled on this context.
public GSSCredential getDelegCred () throws GSSException
  Obtains the credentials delegated by the context initiator to the context acceptor.
public boolean getIntegState ()
  Determines if data integrity is available over the context.
public int getLifetime ()
  Determines what the remaining lifetime for this context is.
public Oid getMech () throws GSSException
  Determines what mechanism is being used for this context.
public byte getMIC (byte[] inMsg, int offset, int len, MessageProp msgProp) throws GSSException
  Returns a token containing a cryptographic Message Integrity Code (MIC) for the supplied message, for transfer to the peer application.
public void getMIC (InputStream inStream, OutputStream outStream, MessageProp msgProp) throws GSSException
  Uses streams to produce a token containing a cryptographic MIC for the supplied message, for transfer to the peer application.
public boolean getMutualAuthState ()
  Determines if mutual authentication is enabled on this context.
public boolean getReplayDetState ()
  Determines if replay detection is enabled for the per-message security services from this context.
public boolean getSequenceDetState ()
  Determines if sequence checking is enabled for the per-message security services from this context.
public GSSName getSrcName () throws GSSException
  Returns the name of the context initiator.
public GSSName getTargName () throws GSSException
  Returns the name of the context acceptor.
public int getWrapSizeLimit (int qop, boolean confReq, int maxTokenSize) throws GSSException
  Used to determine limits on the size of the message that can be passed to wrap.
public byte initSecContext (byte[] inputBuf, int offset, int len) throws GSSException
  Called by the context initiator to start the context creation phase and process any tokens generated by the peer's acceptSecContext method.
public int initSecContext (InputStream inStream, OutputStream outStream) throws GSSException
  Called by the context initiator to start the context creation phase and process any tokens generated by the peer's acceptSecContext method using streams.
public boolean isEstablished ()
  Used during context establishment to determine the state of the context.
public boolean isInitiator () throws GSSException
  Determines if this is the context initiator.
public boolean isProtReady ()
  Determines if the context is ready for per message operations to be used over it.
public boolean isTransferable () throws GSSException
  Determines if the context is transferable to other processes through the use of the export method.
public void requestAnonymity (boolean state) throws GSSException
  Requests that the initiator's identity not be disclosed to the acceptor.
public void requestConf (boolean state) throws GSSException
  Requests that data confidentiality be enabled for the wrap method.
public void requestCredDeleg (boolean state) throws GSSException
  Requests that the initiator's credentials be delegated to the acceptor during context establishment.
public void requestInteg (boolean state) throws GSSException
  Requests that data integrity be enabled for the wrap and getMICmethods.
public void requestLifetime (int lifetime) throws GSSException
  Requests a lifetime in seconds for the context.
public void requestMutualAuth (boolean state) throws GSSException
  Requests that mutual authentication be done during context establishment.
public void requestReplayDet (boolean state) throws GSSException
  Requests that replay detection be enabled for the per-message security services after context establishemnt.
public void requestSequenceDet (boolean state) throws GSSException
  Requests that sequence checking be enabled for the per-message security services after context establishemnt.
public void setChannelBinding (ChannelBinding cb) throws GSSException
  Sets the channel bindings to be used during context establishment.
public byte unwrap (byte[] inBuf, int offset, int len, MessageProp msgProp) throws GSSException
  Used to process tokens generated by the wrap method on the other side of the context.
public void unwrap (InputStream inStream, OutputStream outStream, MessageProp msgProp) throws GSSException
  Uses streams to process tokens generated by the wrap method on the other side of the context.
public void verifyMIC (byte[] inToken, int tokOffset, int tokLen, byte[] inMsg, int msgOffset, int msgLen, MessageProp msgProp) throws GSSException
  Verifies the cryptographic MIC, contained in the token parameter, over the supplied message.
public void verifyMIC (InputStream tokStream, InputStream msgStream, MessageProp msgProp) throws GSSException
  Uses streams to verify the cryptographic MIC, contained in the token parameter, over the supplied message.
public byte wrap (byte[] inBuf, int offset, int len, MessageProp msgProp) throws GSSException
  Applies per-message security services over the established security context.
public void wrap (InputStream inStream, OutputStream outStream, MessageProp msgProp) throws GSSException
  Applies per-message security services over the established security context using streams.
Fields
Hide/Show inherited fields
publicfinalstatic int DEFAULT_LIFETIME = "0"
  A lifetime constant representing the default context lifetime.
publicfinalstatic int INDEFINITE_LIFETIME = "2147483647"
  A lifetime constant representing indefinite context lifetime.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar