public final class OncRpcServerAuthShort extends OncRpcServerAuth
OncRpcServerAuthShort
class handles all protocol issues
of the ONC/RPC authentication AUTH_SHORT
on the server
side.Modifier and Type | Field and Description |
---|---|
private byte[] |
shorthandCred
Contains the shorthand credential sent by the caller.
|
private byte[] |
shorthandVerf
Contains the shorthand authentication verifier (credential) to return
to the caller to be used with the next ONC/RPC calls.
|
Constructor and Description |
---|
OncRpcServerAuthShort(XdrDecodingStream xdr)
Constructs an
OncRpcServerAuthShort object and pulls its
state off an XDR stream. |
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.
|
xdrNew
private byte[] shorthandCred
private byte[] shorthandVerf
public OncRpcServerAuthShort(XdrDecodingStream xdr) throws OncRpcException, java.io.IOException
OncRpcServerAuthShort
object and pulls its
state off an XDR stream.xdr
- XDR stream to retrieve the object state from.OncRpcException
- if an ONC/RPC error occurs.java.io.IOException
- if an I/O error occurs.public final int getAuthenticationType()
authentication
used.getAuthenticationType
in class 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
.public final byte[] getShorthandVerifier()
public final void xdrDecodeCredVerf(XdrDecodingStream xdr) throws OncRpcException, java.io.IOException
xdrDecodeCredVerf
in class OncRpcServerAuth
OncRpcException
- if an ONC/RPC error occurs.java.io.IOException
- if an I/O error occurs.public final void xdrEncodeVerf(XdrEncodingStream xdr) throws OncRpcException, java.io.IOException
xdrEncodeVerf
in class OncRpcServerAuth
OncRpcException
- if an ONC/RPC error occurs.java.io.IOException
- if an I/O error occurs.