|
|||||||||||
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
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 |
Methods inherited from interface com.sun.security.sasl.preview.SaslClient |
getMechanismName, isComplete |
Constructor Detail |
public GSIMech(String authzID, String protocol, String serverName, Map props, CallbackHandler cbh) throws com.sun.security.sasl.preview.SaslException
Method Detail |
public boolean hasInitialResponse()
hasInitialResponse
in interface com.sun.security.sasl.preview.SaslClient
public byte[] evaluateChallenge(byte[] challengeData) throws com.sun.security.sasl.preview.SaslException
evaluateChallenge
in interface com.sun.security.sasl.preview.SaslClient
challengeData
- The non-null challenge sent from the server.
com.sun.security.sasl.preview.SaslException
- If an error occurred while processing
the challenge or generating a response.public byte[] wrap(byte[] outgoing, int offset, int len) throws com.sun.security.sasl.preview.SaslException
Returns SSL wrapped byte array.
wrap
in interface com.sun.security.sasl.preview.SaslClient
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.
com.sun.security.sasl.preview.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 com.sun.security.sasl.preview.SaslException
Returns SSL unwraped byte array.
unwrap
in interface com.sun.security.sasl.preview.SaslClient
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.
com.sun.security.sasl.preview.SaslException
- if the authentication exchange has not completed or
if the negotiated quality of protection has neither integrity nor privacy.public void dispose() throws com.sun.security.sasl.preview.SaslException
dispose
in interface com.sun.security.sasl.preview.SaslClient
com.sun.security.sasl.preview.SaslException
- If a problem was encountered while disposing
the resources.public String getNegotiatedProperty(String propName) throws com.sun.security.sasl.preview.SaslException
getNegotiatedProperty
in interface com.sun.security.sasl.preview.SaslClient
com.sun.security.sasl.preview.SaslException
- if this authentication exchange has not completedprotected void finalize() throws Throwable
Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |