public final class OncRpcServerAuthShort extends Object implements OncRpcServerAuth
OncRpcServerAuthShort
class handles all protocol issues
of the ONC/RPC authentication AUTH_SHORT
on the server
side.Constructor and Description |
---|
OncRpcServerAuthShort() |
Modifier and Type | Method and Description |
---|---|
int |
getAuthenticationType()
Returns the type (flavor) of
authentication
used. |
byte[] |
getShorthandCred()
Returns the shorthand credential sent by the caller.
|
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 final int getAuthenticationType()
authentication
used.getAuthenticationType
in interface OncRpcServerAuth
public final byte[] getShorthandCred()
public final void setShorthandVerifier(byte[] shorthandVerf)
null
, then the verifier returned to the caller will be
of type AUTH_NONE
.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 © 2022. All rights reserved.