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 |
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
GSIMechanism
public GSIMechanism()
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()