GlobusGSSContext (Java Globus API)

org.globus.security.gsi.gssapi
Class GlobusGSSContext

java.lang.Object
  |
  +--org.globus.security.gsi.gssapi.GlobusGSSContext
All Implemented Interfaces:
org.ietf.jgss.GSSContext

public class GlobusGSSContext
extends java.lang.Object
implements org.ietf.jgss.GSSContext


Field Summary
protected  java.lang.String cipherAlgorithm
           
protected  GlobusGSSCredential cred
           
protected  boolean credentialDelegation
           
protected  int delegationType
           
protected  GlobusGSSCredential delegCred
           
protected  boolean encryption
           
protected  boolean established
           
protected  org.globus.security.gsi.gssapi.GlobusGSSContext.HandshakeThread handshakeThread
           
protected  TokenInputStream in
           
protected  int lifetime
           
protected  boolean mutualAuth
           
protected  TokenOutputStream out
           
protected  boolean protReady
           
protected  int role
           
protected  java.io.InputStream secureIn
           
protected  java.io.OutputStream secureOut
           
protected  org.ietf.jgss.GSSName sourceName
           
protected  org.ietf.jgss.GSSName targetName
           
protected  Waiter waiter
           
 
Fields inherited from interface org.ietf.jgss.GSSContext
DEFAULT_LIFETIME, INDEFINITE_LIFETIME
 
Method Summary
 byte[] acceptSecContext(byte[] inBuff, int off, int len)
           
 void acceptSecContext(java.io.InputStream in, java.io.OutputStream out)
           
 void dispose()
           
 byte[] export()
           
 boolean getAnonymityState()
           
 boolean getConfState()
           
 boolean getCredDelegState()
           
 org.ietf.jgss.GSSCredential getDelegCred()
           
 boolean getIntegState()
           
 int getLifetime()
           
 org.ietf.jgss.Oid getMech()
           
 byte[] getMIC(byte[] inMsg, int off, int len, org.ietf.jgss.MessageProp msgProp)
           
 void getMIC(java.io.InputStream inStream, java.io.OutputStream outStream, org.ietf.jgss.MessageProp msgProp)
           
 boolean getMutualAuthState()
           
 boolean getReplayDetState()
           
 boolean getSequenceDetState()
           
 org.ietf.jgss.GSSName getSrcName()
           
 org.ietf.jgss.GSSName getTargName()
           
 int getWrapSizeLimit(int qop, boolean confReq, int maxTokenSize)
           
 byte[] initSecContext(byte[] inBuff, int off, int len)
           
 int initSecContext(java.io.InputStream in, java.io.OutputStream out)
           
 boolean isEstablished()
           
 boolean isInitiator()
           
 boolean isProtReady()
           
 boolean isTransferable()
           
 void requestAnonymity(boolean state)
           
 void requestConf(boolean state)
           
 void requestCredDeleg(boolean state)
           
 void requestInteg(boolean state)
           
 void requestLifetime(int lifetime)
           
 void requestMutualAuth(boolean state)
           
 void requestReplayDet(boolean state)
           
 void requestSequenceDet(boolean state)
           
 void setChannelBinding(org.ietf.jgss.ChannelBinding cb)
           
 void setDelegationType(int delegationType)
           
 byte[] unwrap(byte[] inBuf, int off, int len, org.ietf.jgss.MessageProp prop)
           
 void unwrap(java.io.InputStream inStream, java.io.OutputStream outStream, org.ietf.jgss.MessageProp msgProp)
           
 void verifyMIC(byte[] inTok, int tokOff, int tokLen, byte[] inMsg, int msgOffset, int msgLen, org.ietf.jgss.MessageProp msgProp)
           
 void verifyMIC(java.io.InputStream tokStream, java.io.InputStream msgStream, org.ietf.jgss.MessageProp msgProp)
           
 byte[] wrap(byte[] inBuf, int off, int len, org.ietf.jgss.MessageProp prop)
           
 void wrap(java.io.InputStream inStream, java.io.OutputStream outStream, org.ietf.jgss.MessageProp msgProp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handshakeThread

protected org.globus.security.gsi.gssapi.GlobusGSSContext.HandshakeThread handshakeThread

in

protected TokenInputStream in

out

protected TokenOutputStream out

secureIn

protected java.io.InputStream secureIn

secureOut

protected java.io.OutputStream secureOut

credentialDelegation

protected boolean credentialDelegation

established

protected boolean established

protReady

protected boolean protReady

lifetime

protected int lifetime

cred

protected GlobusGSSCredential cred

delegCred

protected GlobusGSSCredential delegCred

role

protected int role

encryption

protected boolean encryption

mutualAuth

protected boolean mutualAuth

sourceName

protected org.ietf.jgss.GSSName sourceName

targetName

protected org.ietf.jgss.GSSName targetName

delegationType

protected int delegationType

cipherAlgorithm

protected java.lang.String cipherAlgorithm

waiter

protected Waiter waiter
Method Detail

acceptSecContext

public byte[] acceptSecContext(byte[] inBuff,
                               int off,
                               int len)
                        throws org.ietf.jgss.GSSException
Specified by:
acceptSecContext in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

initSecContext

public byte[] initSecContext(byte[] inBuff,
                             int off,
                             int len)
                      throws org.ietf.jgss.GSSException
Specified by:
initSecContext in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

wrap

public byte[] wrap(byte[] inBuf,
                   int off,
                   int len,
                   org.ietf.jgss.MessageProp prop)
            throws org.ietf.jgss.GSSException
Specified by:
wrap in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

unwrap

public byte[] unwrap(byte[] inBuf,
                     int off,
                     int len,
                     org.ietf.jgss.MessageProp prop)
              throws org.ietf.jgss.GSSException
Specified by:
unwrap in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

dispose

public void dispose()
             throws org.ietf.jgss.GSSException
Specified by:
dispose in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

isEstablished

public boolean isEstablished()
Specified by:
isEstablished in interface org.ietf.jgss.GSSContext

requestCredDeleg

public void requestCredDeleg(boolean state)
                      throws org.ietf.jgss.GSSException
Specified by:
requestCredDeleg in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

getCredDelegState

public boolean getCredDelegState()
Specified by:
getCredDelegState in interface org.ietf.jgss.GSSContext

isInitiator

public boolean isInitiator()
                    throws org.ietf.jgss.GSSException
Specified by:
isInitiator in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

isProtReady

public boolean isProtReady()
Specified by:
isProtReady in interface org.ietf.jgss.GSSContext

getLifetime

public int getLifetime()
Specified by:
getLifetime in interface org.ietf.jgss.GSSContext

getMech

public org.ietf.jgss.Oid getMech()
                          throws org.ietf.jgss.GSSException
Specified by:
getMech in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

getDelegCred

public org.ietf.jgss.GSSCredential getDelegCred()
                                         throws org.ietf.jgss.GSSException
Specified by:
getDelegCred in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

requestConf

public void requestConf(boolean state)
                 throws org.ietf.jgss.GSSException
Specified by:
requestConf in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

getConfState

public boolean getConfState()
Specified by:
getConfState in interface org.ietf.jgss.GSSContext

getIntegState

public boolean getIntegState()
Specified by:
getIntegState in interface org.ietf.jgss.GSSContext

requestInteg

public void requestInteg(boolean state)
                  throws org.ietf.jgss.GSSException
Specified by:
requestInteg in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

requestMutualAuth

public void requestMutualAuth(boolean state)
                       throws org.ietf.jgss.GSSException
Specified by:
requestMutualAuth in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

getMutualAuthState

public boolean getMutualAuthState()
Specified by:
getMutualAuthState in interface org.ietf.jgss.GSSContext

getMIC

public byte[] getMIC(byte[] inMsg,
                     int off,
                     int len,
                     org.ietf.jgss.MessageProp msgProp)
              throws org.ietf.jgss.GSSException
Specified by:
getMIC in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

verifyMIC

public void verifyMIC(byte[] inTok,
                      int tokOff,
                      int tokLen,
                      byte[] inMsg,
                      int msgOffset,
                      int msgLen,
                      org.ietf.jgss.MessageProp msgProp)
               throws org.ietf.jgss.GSSException
Specified by:
verifyMIC in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

getSrcName

public org.ietf.jgss.GSSName getSrcName()
                                 throws org.ietf.jgss.GSSException
Specified by:
getSrcName in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

getTargName

public org.ietf.jgss.GSSName getTargName()
                                  throws org.ietf.jgss.GSSException
Specified by:
getTargName in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

setDelegationType

public void setDelegationType(int delegationType)

initSecContext

public int initSecContext(java.io.InputStream in,
                          java.io.OutputStream out)
                   throws org.ietf.jgss.GSSException
Specified by:
initSecContext in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

acceptSecContext

public void acceptSecContext(java.io.InputStream in,
                             java.io.OutputStream out)
                      throws org.ietf.jgss.GSSException
Specified by:
acceptSecContext in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

getWrapSizeLimit

public int getWrapSizeLimit(int qop,
                            boolean confReq,
                            int maxTokenSize)
                     throws org.ietf.jgss.GSSException
Specified by:
getWrapSizeLimit in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

wrap

public void wrap(java.io.InputStream inStream,
                 java.io.OutputStream outStream,
                 org.ietf.jgss.MessageProp msgProp)
          throws org.ietf.jgss.GSSException
Specified by:
wrap in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

unwrap

public void unwrap(java.io.InputStream inStream,
                   java.io.OutputStream outStream,
                   org.ietf.jgss.MessageProp msgProp)
            throws org.ietf.jgss.GSSException
Specified by:
unwrap in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

getMIC

public void getMIC(java.io.InputStream inStream,
                   java.io.OutputStream outStream,
                   org.ietf.jgss.MessageProp msgProp)
            throws org.ietf.jgss.GSSException
Specified by:
getMIC in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

verifyMIC

public void verifyMIC(java.io.InputStream tokStream,
                      java.io.InputStream msgStream,
                      org.ietf.jgss.MessageProp msgProp)
               throws org.ietf.jgss.GSSException
Specified by:
verifyMIC in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

requestLifetime

public void requestLifetime(int lifetime)
                     throws org.ietf.jgss.GSSException
Specified by:
requestLifetime in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

setChannelBinding

public void setChannelBinding(org.ietf.jgss.ChannelBinding cb)
                       throws org.ietf.jgss.GSSException
Specified by:
setChannelBinding in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

requestAnonymity

public void requestAnonymity(boolean state)
                      throws org.ietf.jgss.GSSException
Specified by:
requestAnonymity in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

getAnonymityState

public boolean getAnonymityState()
Specified by:
getAnonymityState in interface org.ietf.jgss.GSSContext

requestReplayDet

public void requestReplayDet(boolean state)
                      throws org.ietf.jgss.GSSException
Specified by:
requestReplayDet in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

getReplayDetState

public boolean getReplayDetState()
Specified by:
getReplayDetState in interface org.ietf.jgss.GSSContext

requestSequenceDet

public void requestSequenceDet(boolean state)
                        throws org.ietf.jgss.GSSException
Specified by:
requestSequenceDet in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

getSequenceDetState

public boolean getSequenceDetState()
Specified by:
getSequenceDetState in interface org.ietf.jgss.GSSContext

isTransferable

public boolean isTransferable()
                       throws org.ietf.jgss.GSSException
Specified by:
isTransferable in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException

export

public byte[] export()
              throws org.ietf.jgss.GSSException
Specified by:
export in interface org.ietf.jgss.GSSContext
org.ietf.jgss.GSSException