|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.acplt.oncrpc.OncRpcClientAuth
public abstract class OncRpcClientAuth
The OncRpcClientAuth
class is the base class for handling
all protocol issues of ONC/RPC authentication on the client side. As it
stands, it does not do very much with the exception of defining the contract
for the behaviour of derived classes with respect to protocol handling
issues.
Authentication on the client side can be done as follows: just create an authentication object and hand it over to the ONC/RPC client object.
OncRpcClientAuth auth = new OncRpcClientAuthUnix( "marvin@ford.prefect", 42, 1001, new int[0]); client.setAuth(auth);The
authentication AUTH_UNIX
will
handle shorthand credentials (of type AUTH_SHORT
transparently).
If you do not set any authentication object after creating an ONC/RPC client
object, AUTH_NONE
is used automatically.
Constructor Summary | |
---|---|
OncRpcClientAuth()
|
Method Summary | |
---|---|
protected abstract boolean |
canRefreshCred()
Indicates whether the ONC/RPC authentication credential can be refreshed. |
protected abstract void |
xdrDecodeVerf(XdrDecodingStream xdr)
Decodes ONC/RPC authentication information in form of a verifier when receiving an ONC/RPC reply message. |
protected abstract void |
xdrEncodeCredVerf(XdrEncodingStream xdr)
Encodes ONC/RPC authentication information in form of a credential and a verifier when sending an ONC/RPC call message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OncRpcClientAuth()
Method Detail |
---|
protected abstract void xdrEncodeCredVerf(XdrEncodingStream xdr) throws OncRpcException, java.io.IOException
xdr
- XDR stream where to encode the credential and the verifier
to.
OncRpcException
- if an ONC/RPC error occurs.
java.io.IOException
- if an I/O error occurs.protected abstract void xdrDecodeVerf(XdrDecodingStream xdr) throws OncRpcException, java.io.IOException
xdr
- XDR stream from which to receive the verifier sent together
with an ONC/RPC reply message.
OncRpcAuthenticationException
- if the received verifier is
not kosher.
OncRpcException
- if an ONC/RPC error occurs.
java.io.IOException
- if an I/O error occurs.protected abstract boolean canRefreshCred()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |