public final class OncRpcServerAuthUnix extends Object implements OncRpcServerAuth
OncRpcServerAuthNone
class handles all protocol issues
of the ONC/RPC authentication AUTH_UNIX
on the server
side.Modifier and Type | Field and Description |
---|---|
int |
gid
Contains the group ID of caller supplied through credential.
|
int[] |
gids
Contains a set of group IDs the caller belongs to, as supplied
through credential.
|
String |
machinename
Contains the machine name of caller supplied through credential.
|
int |
stamp
Contains timestamp as supplied through credential.
|
int |
uid
Contains the user ID of caller supplied through credential.
|
Constructor and Description |
---|
OncRpcServerAuthUnix() |
Modifier and Type | Method and Description |
---|---|
int |
getAuthenticationType()
Returns the type (flavor) of
authentication
used. |
byte[] |
getShorthandVerifier()
Returns the shorthand verifier to be sent back to the caller.
|
void |
setShorthandVerifier(byte[] shorthandVerf)
Sets shorthand verifier to be sent back to the caller.
|
void |
xdrDecodeCredVerf(XdrDecodingStream xdr)
Decodes -- that is: deserializes -- an ONC/RPC authentication object
(credential & verifier) on the server side.
|
void |
xdrEncodeVerf(XdrEncodingStream xdr)
Encodes -- that is: serializes -- an ONC/RPC authentication object
(its verifier) on the server side.
|
public int stamp
public String machinename
public int uid
public int gid
public int[] gids
public final int getAuthenticationType()
authentication
used.getAuthenticationType
in interface OncRpcServerAuth
public final void setShorthandVerifier(byte[] shorthandVerf)
shorthandVerf
- A byte array containing the shorthand verifier.public final byte[] getShorthandVerifier()
public final void xdrDecodeCredVerf(XdrDecodingStream xdr) throws OncRpcException, IOException
xdrDecodeCredVerf
in interface OncRpcServerAuth
xdr
- An XDR decoding streamOncRpcException
- if an ONC/RPC error occurs.IOException
- if an I/O error occurs.public final void xdrEncodeVerf(XdrEncodingStream xdr) throws OncRpcException, IOException
xdrEncodeVerf
in interface OncRpcServerAuth
xdr
- An XDR encoding streamOncRpcException
- if an ONC/RPC error occurs.IOException
- if an I/O error occurs.Copyright © 2015. All rights reserved.