org.globus.mds.gsi.common
Class GSIMechanism

java.lang.Object
  extended byorg.globus.mds.gsi.common.GSIMechanism
Direct Known Subclasses:
GSIMech, GSIMech

public class GSIMechanism
extends Object


Field Summary
protected  byte allQop
           
protected  boolean completed
           
protected  GSSContext context
           
protected static byte HIGH_STRENGTH
           
protected  boolean integrity
           
protected static byte INTEGRITY_ONLY_PROTECTION
           
protected static byte LOW_STRENGTH
           
static String MAX_BUFFER
           
static String MAX_SEND_BUF
           
protected static byte MEDIUM_STRENGTH
           
static String NAME
           
static String NAME2
           
protected static byte NO_PROTECTION
           
protected  boolean privacy
           
protected static byte PRIVACY_PROTECTION
           
static String PROXY
           
protected  byte[] qop
           
static String QOP
           
protected  int recvMaxBufSize
           
static String SECURITY_CREDENTIALS
           
protected  int sendMaxBufSize
           
protected  byte[] strength
           
static String STRENGTH
           
 
Constructor Summary
GSIMechanism()
           
 
Method Summary
protected static byte combineMasks(byte[] in)
          All the functions below are copied from SaslImpl.java.
 byte[] exchangeData(byte[] challengeData)
           
static byte findPreferredMask(byte pref, byte[] in)
           
 InputStream getInputStream(InputStream src)
           
 String getMechanismName()
           
 OutputStream getOutputStream(OutputStream dest)
           
 int getRecvMaxBufSize()
           
 int getSendMaxBufSize()
           
protected  void init(String serverName, Map props)
           
static void intToNetworkByteOrder(int num, byte[] buf, int start, int count)
           
 boolean isComplete()
           
 boolean isIntegrityQop()
           
 boolean isNotProtected()
           
 boolean isPrivacyQop()
           
 byte[] negotiateProtections(byte[] sf)
           
static int networkByteOrderToInt(byte[] buf, int start, int count)
           
protected  byte[] parseProp(String propName, String propVal, String[] vals, byte[] masks, String[] tokens, boolean ignore)
           
protected  byte[] parseQop(String qop)
           
protected  byte[] parseQop(String qop, String[] saveTokens, boolean ignore)
           
protected  byte[] parseStrength(String strength)
           
 void setQOP(byte[] qop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECURITY_CREDENTIALS

public static final String SECURITY_CREDENTIALS
See Also:
Constant Field Values

NAME2

public static final String NAME2
See Also:
Constant Field Values

NAME

public static final String NAME
See Also:
Constant Field Values

MAX_SEND_BUF

public static final String MAX_SEND_BUF
See Also:
Constant Field Values

MAX_BUFFER

public static final String MAX_BUFFER
See Also:
Constant Field Values

STRENGTH

public static final String STRENGTH
See Also:
Constant Field Values

QOP

public static final String QOP
See Also:
Constant Field Values

PROXY

public static final String PROXY
See Also:
Constant Field Values

NO_PROTECTION

protected static final byte NO_PROTECTION
See Also:
Constant Field Values

INTEGRITY_ONLY_PROTECTION

protected static final byte INTEGRITY_ONLY_PROTECTION
See Also:
Constant Field Values

PRIVACY_PROTECTION

protected static final byte PRIVACY_PROTECTION
See Also:
Constant Field Values

LOW_STRENGTH

protected static final byte LOW_STRENGTH
See Also:
Constant Field Values

MEDIUM_STRENGTH

protected static final byte MEDIUM_STRENGTH
See Also:
Constant Field Values

HIGH_STRENGTH

protected static final byte HIGH_STRENGTH
See Also:
Constant Field Values

context

protected GSSContext context

completed

protected boolean completed

qop

protected byte[] qop

allQop

protected byte allQop

strength

protected byte[] strength

privacy

protected boolean privacy

integrity

protected boolean integrity

sendMaxBufSize

protected int sendMaxBufSize

recvMaxBufSize

protected int recvMaxBufSize
Constructor Detail

GSIMechanism

public GSIMechanism()
Method Detail

getMechanismName

public String getMechanismName()

isComplete

public boolean isComplete()

init

protected void init(String serverName,
                    Map props)
             throws Exception
Throws:
Exception

combineMasks

protected static byte combineMasks(byte[] in)
All the functions below are copied from SaslImpl.java. It's part of the J2SE1.4 source code.


parseQop

protected byte[] parseQop(String qop)
                   throws Exception
Throws:
Exception

parseQop

protected byte[] parseQop(String qop,
                          String[] saveTokens,
                          boolean ignore)
                   throws Exception
Throws:
Exception

parseStrength

protected byte[] parseStrength(String strength)
                        throws Exception
Throws:
Exception

parseProp

protected byte[] parseProp(String propName,
                           String propVal,
                           String[] vals,
                           byte[] masks,
                           String[] tokens,
                           boolean ignore)
                    throws Exception
Throws:
Exception

findPreferredMask

public static byte findPreferredMask(byte pref,
                                     byte[] in)

intToNetworkByteOrder

public static void intToNetworkByteOrder(int num,
                                         byte[] buf,
                                         int start,
                                         int count)

networkByteOrderToInt

public static int networkByteOrderToInt(byte[] buf,
                                        int start,
                                        int count)

getOutputStream

public OutputStream getOutputStream(OutputStream dest)
                             throws IOException
Throws:
IOException

getInputStream

public InputStream getInputStream(InputStream src)
                           throws IOException
Throws:
IOException

exchangeData

public byte[] exchangeData(byte[] challengeData)
                    throws GSSException,
                           Exception
Throws:
GSSException
Exception

setQOP

public void setQOP(byte[] qop)
            throws GSSException
Throws:
GSSException

negotiateProtections

public byte[] negotiateProtections(byte[] sf)
                            throws Exception
Throws:
Exception

isPrivacyQop

public boolean isPrivacyQop()

isIntegrityQop

public boolean isIntegrityQop()

isNotProtected

public boolean isNotProtected()

getSendMaxBufSize

public int getSendMaxBufSize()

getRecvMaxBufSize

public int getRecvMaxBufSize()