Package org.acplt.oncrpc.server
Class OncRpcServerAuthNone
java.lang.Object
org.acplt.oncrpc.server.OncRpcServerAuthNone
- All Implemented Interfaces:
OncRpcServerAuth
The
OncRpcServerAuthNone class handles all protocol issues
of the ONC/RPC authentication AUTH_NONE on the server
side.- Version:
- $Revision: 1.1 $ $Date: 2003/08/13 12:03:51 $ $State: Exp $ $Locker: $
- Author:
- Harald Albrecht
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OncRpcServerAuthNoneSingleton to use when an authentication object forAUTH_NONEis needed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intReturns the type (flavor) ofauthenticationused.final voidDecodes -- that is: deserializes -- an ONC/RPC authentication object (credential & verifier) on the server side.final voidEncodes -- that is: serializes -- an ONC/RPC authentication object (its verifier) on the server side.
-
Field Details
-
AUTH_NONE
Singleton to use when an authentication object forAUTH_NONEis needed.
-
-
Constructor Details
-
OncRpcServerAuthNone
public OncRpcServerAuthNone()
-
-
Method Details
-
getAuthenticationType
public final int getAuthenticationType()Returns the type (flavor) ofauthenticationused.- Specified by:
getAuthenticationTypein interfaceOncRpcServerAuth- Returns:
- Authentication type used by this authentication object.
-
xdrDecodeCredVerf
Decodes -- that is: deserializes -- an ONC/RPC authentication object (credential & verifier) on the server side.- Specified by:
xdrDecodeCredVerfin interfaceOncRpcServerAuth- Parameters:
xdr- An XDR decoding stream- Throws:
OncRpcException- if an ONC/RPC error occurs.IOException- if an I/O error occurs.
-
xdrEncodeVerf
Encodes -- that is: serializes -- an ONC/RPC authentication object (its verifier) on the server side.- Specified by:
xdrEncodeVerfin interfaceOncRpcServerAuth- Parameters:
xdr- An XDR encoding stream- Throws:
OncRpcException- if an ONC/RPC error occurs.IOException- if an I/O error occurs.
-