com.distinct.rpc
Class Auth

java.lang.Object
  |
  +--com.distinct.rpc.Auth
All Implemented Interfaces:
java.io.Serializable, XDRType
Direct Known Subclasses:
AuthDes, AuthShort, AuthUnix

public class Auth
extends java.lang.Object
implements XDRType

Base class of all authentication classes. Implements AUTH_NULL authentication.

See Also:
AuthUnix, AuthShort, Serialized Form

Constructor Summary
Auth()
          Creates an authenticator of flavor AUTH_NULL.
Auth(int flavorp, byte[] AuthOpaque)
          Creates an authenticator of arbitrary flavor.
 
Method Summary
 byte[] getAuthOpaque()
          Gets the opaque data of the authenticator.
 int getFlavor()
          Gets the flavor identifier.
 void setAuthOpaque(byte[] auth_opaque)
          Sets the opaque data of the authenticator.
 void setFlavor(int flavorp)
          Sets the flavor identifier.
 void xdr_decode(XDRStream xdrs)
          Decodes an authenticator in compliance to RFC 1832 (XDR).
 void xdr_encode(XDRStream xdrs)
          Encodes an authenticator in compliance to RFC 1832 (XDR).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Auth

public Auth()
Creates an authenticator of flavor AUTH_NULL.


Auth

public Auth(int flavorp,
            byte[] AuthOpaque)
Creates an authenticator of arbitrary flavor.

Parameters:
flavorp - The flavor identifier.
AuthOpaque - The opaque data of the authenticator.
Method Detail

getFlavor

public int getFlavor()
Gets the flavor identifier.

Returns:
The flavor identifier.

setFlavor

public void setFlavor(int flavorp)
Sets the flavor identifier.

Parameters:
flavorp - The flavor identifier.

getAuthOpaque

public byte[] getAuthOpaque()
Gets the opaque data of the authenticator.

Returns:
The opaque data of the authenticator.

setAuthOpaque

public void setAuthOpaque(byte[] auth_opaque)
Sets the opaque data of the authenticator.

Parameters:
auth_opaque - The opaque data of the authenticator.

xdr_encode

public void xdr_encode(XDRStream xdrs)
Encodes an authenticator in compliance to RFC 1832 (XDR).

Specified by:
xdr_encode in interface XDRType
Parameters:
xdrs - The XDR output stream.

xdr_decode

public void xdr_decode(XDRStream xdrs)
                throws RPCError
Decodes an authenticator in compliance to RFC 1832 (XDR).

Specified by:
xdr_decode in interface XDRType
Parameters:
xdrs - The XDR input stream.
RPCError