Java Globus API: Class GSIMechanism
org.globus.mds.gsi.common
Class GSIMechanism
java.lang.Object
|
+--org.globus.mds.gsi.common.GSIMechanism
- Direct Known Subclasses:
- GSIMech, GSIMech
- public class GSIMechanism
- extends Object
|
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 |
NAME2
public static final String NAME2
NAME
public static final String NAME
MAX_SEND_BUF
public static final String MAX_SEND_BUF
MAX_BUFFER
public static final String MAX_BUFFER
STRENGTH
public static final String STRENGTH
QOP
public static final String QOP
PROXY
public static final String PROXY
NO_PROTECTION
protected static final byte NO_PROTECTION
INTEGRITY_ONLY_PROTECTION
protected static final byte INTEGRITY_ONLY_PROTECTION
PRIVACY_PROTECTION
protected static final byte PRIVACY_PROTECTION
LOW_STRENGTH
protected static final byte LOW_STRENGTH
MEDIUM_STRENGTH
protected static final byte MEDIUM_STRENGTH
HIGH_STRENGTH
protected static final byte HIGH_STRENGTH
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
GSIMechanism
public GSIMechanism()
getMechanismName
public String getMechanismName()
isComplete
public boolean isComplete()
init
protected void init(String serverName,
Map props)
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
parseQop
protected byte[] parseQop(String qop,
String[] saveTokens,
boolean ignore)
throws Exception
parseStrength
protected byte[] parseStrength(String strength)
throws Exception
parseProp
protected byte[] parseProp(String propName,
String propVal,
String[] vals,
byte[] masks,
String[] tokens,
boolean ignore)
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
getInputStream
public InputStream getInputStream(InputStream src)
throws IOException
exchangeData
public byte[] exchangeData(byte[] challengeData)
throws GSSException,
Exception
setQOP
public void setQOP(byte[] qop)
throws GSSException
negotiateProtections
public byte[] negotiateProtections(byte[] sf)
throws Exception
isPrivacyQop
public boolean isPrivacyQop()
isIntegrityQop
public boolean isIntegrityQop()
isNotProtected
public boolean isNotProtected()
getSendMaxBufSize
public int getSendMaxBufSize()
getRecvMaxBufSize
public int getRecvMaxBufSize()