Package org.acplt.oncrpc.server
Class OncRpcServerAuthShort
java.lang.Object
org.acplt.oncrpc.server.OncRpcServerAuth
org.acplt.oncrpc.server.OncRpcServerAuthShort
The
OncRpcServerAuthShort
class handles all protocol issues
of the ONC/RPC authentication AUTH_SHORT
on the server
side.- Version:
- $Revision: 1.1.1.1 $ $Date: 2003/08/13 12:03:51 $ $State: Exp $ $Locker: $
- Author:
- Harald Albrecht
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]
Contains the shorthand credential sent by the caller.private byte[]
Contains the shorthand authentication verifier (credential) to return to the caller to be used with the next ONC/RPC calls. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs anOncRpcServerAuthShort
object and pulls its state off an XDR stream. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
Returns the type (flavor) ofauthentication
used.final byte[]
Returns the shorthand credential sent by the caller.final byte[]
Returns the shorthand verifier to be sent back to the caller.final void
setShorthandVerifier
(byte[] shorthandVerf) Sets shorthand verifier to be sent back to the caller.final void
Decodes -- that is: deserializes -- an ONC/RPC authentication object (credential & verifier) on the server side.final void
Encodes -- that is: serializes -- an ONC/RPC authentication object (its verifier) on the server side.Methods inherited from class org.acplt.oncrpc.server.OncRpcServerAuth
xdrNew
-
Field Details
-
shorthandCred
private byte[] shorthandCredContains the shorthand credential sent by the caller. -
shorthandVerf
private byte[] shorthandVerfContains the shorthand authentication verifier (credential) to return to the caller to be used with the next ONC/RPC calls.
-
-
Constructor Details
-
OncRpcServerAuthShort
Constructs anOncRpcServerAuthShort
object and pulls its state off an XDR stream.- Parameters:
xdr
- XDR stream to retrieve the object state from.- Throws:
OncRpcException
- if an ONC/RPC error occurs.IOException
- if an I/O error occurs.
-
-
Method Details
-
getAuthenticationType
public final int getAuthenticationType()Returns the type (flavor) ofauthentication
used.- Specified by:
getAuthenticationType
in classOncRpcServerAuth
- Returns:
- Authentication type used by this authentication object.
-
getShorthandCred
public final byte[] getShorthandCred()Returns the shorthand credential sent by the caller. -
setShorthandVerifier
public final void setShorthandVerifier(byte[] shorthandVerf) Sets shorthand verifier to be sent back to the caller. The caller then can use this shorthand verifier as the new credential with the next ONC/RPC calls. If you don't set the verifier or set it tonull
, then the verifier returned to the caller will be of typeAUTH_NONE
. -
getShorthandVerifier
public final byte[] getShorthandVerifier()Returns the shorthand verifier to be sent back to the caller. -
xdrDecodeCredVerf
Decodes -- that is: deserializes -- an ONC/RPC authentication object (credential & verifier) on the server side.- Specified by:
xdrDecodeCredVerf
in classOncRpcServerAuth
- 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:
xdrEncodeVerf
in classOncRpcServerAuth
- Throws:
OncRpcException
- if an ONC/RPC error occurs.IOException
- if an I/O error occurs.
-