|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.mds.gsi.common.GSIMechanism
org.globus.mds.gsi.jndi.GSIMech
public class GSIMech
Implements the SASL client mechanism for GSI.
Field Summary |
---|
Fields inherited from class org.globus.mds.gsi.common.GSIMechanism |
---|
allQop, completed, context, HIGH_STRENGTH, integrity, INTEGRITY_ONLY_PROTECTION, LOW_STRENGTH, MAX_BUFFER, MAX_SEND_BUF, MEDIUM_STRENGTH, NAME, NAME2, NO_PROTECTION, privacy, PRIVACY_PROTECTION, PROXY, qop, QOP, recvMaxBufSize, SECURITY_CREDENTIALS, sendMaxBufSize, strength, STRENGTH |
Constructor Summary | |
---|---|
GSIMech(String authzID,
String protocol,
String serverName,
Map props,
CallbackHandler cbh)
|
Method Summary | |
---|---|
void |
dispose()
Disposes of the internal I/O streams. |
byte[] |
evaluateChallenge(byte[] challengeData)
Evaluates the challenge data and generates a response. |
protected void |
finalize()
|
String |
getNegotiatedProperty(String propName)
Retrieves the negotiated property. |
boolean |
hasInitialResponse()
Determines whether this mechanism has an optional initial response. |
byte[] |
unwrap(byte[] incoming,
int offset,
int len)
Unwraps a byte array received from the server. |
byte[] |
wrap(byte[] outgoing,
int offset,
int len)
Wraps a byte array to be sent to the server. |
Methods inherited from class org.globus.mds.gsi.common.GSIMechanism |
---|
combineMasks, exchangeData, findPreferredMask, getInputStream, getMechanismName, getOutputStream, getRecvMaxBufSize, getSendMaxBufSize, init, intToNetworkByteOrder, isComplete, isIntegrityQop, isNotProtected, isPrivacyQop, negotiateProtections, networkByteOrderToInt, parseProp, parseQop, parseQop, parseStrength, setQOP |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GSIMech(String authzID, String protocol, String serverName, Map props, CallbackHandler cbh) throws SaslException
SaslException
Method Detail |
---|
public boolean hasInitialResponse()
public byte[] evaluateChallenge(byte[] challengeData) throws SaslException
challengeData
- The non-null challenge sent from the server.
SaslException
- If an error occurred while processing
the challenge or generating a response.public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException
Returns SSL wrapped byte array.
outgoing
- A non-null byte array containing the bytes to encode.offset
- The starting position at outgoing of the bytes to use.len
- The number of bytes from outgoing to use.
SaslException
- if the authentication exchange has not completed or
if the negotiated quality of protection has neither integrity nor privacy.public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException
Returns SSL unwraped byte array.
incoming
- A non-null byte array containing the encoded bytes
from the server.offset
- The starting position at incoming of the bytes to use.len
- The number of bytes from incoming to use.
SaslException
- if the authentication exchange has not completed or
if the negotiated quality of protection has neither integrity nor privacy.public void dispose() throws SaslException
SaslException
- If a problem was encountered while disposing
the resources.public String getNegotiatedProperty(String propName) throws SaslException
SaslException
- if this authentication exchange has not completedprotected void finalize() throws Throwable
finalize
in class Object
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |