All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class distinct.rpc.Auth

java.lang.Object
   |
   +----distinct.rpc.Auth

public class Auth
extends Object
implements XDRType
Base class of all authentication classes. Implements AUTH_NULL authentication.

See Also:
AuthUnix, AuthShort

Constructor Index

 o Auth()
Creates an authenticator of flavor AUTH_NULL.
 o Auth(int, byte[])
Creates an authenticator of arbitrary flavor.

Method Index

 o getAuthOpaque()
Gets the opaque data of the authenticator.
 o getFlavor()
Gets the flavor identifier.
 o setAuthOpaque(byte[])
Sets the opaque data of the authenticator.
 o setFlavor(int)
Sets the flavor identifier.
 o xdr_decode(XDRStream)
Decodes an authenticator in compliance to RFC 1832 (XDR).
 o xdr_encode(XDRStream)
Encodes an authenticator in compliance to RFC 1832 (XDR).

Constructors

 o Auth
 public Auth()
Creates an authenticator of flavor AUTH_NULL.

 o 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.

Methods

 o getFlavor
 public int getFlavor()
Gets the flavor identifier.

Returns:
The flavor identifier.
 o setFlavor
 public void setFlavor(int flavorp)
Sets the flavor identifier.

Parameters:
flavorp - The flavor identifier.
 o getAuthOpaque
 public byte[] getAuthOpaque()
Gets the opaque data of the authenticator.

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

Parameters:
auth_opaque - The opaque data of the authenticator.
 o xdr_encode
 public void xdr_encode(XDRStream xdrs)
Encodes an authenticator in compliance to RFC 1832 (XDR).

Parameters:
xdrs - The XDR output stream.
 o xdr_decode
 public void xdr_decode(XDRStream xdrs) throws RPCError
Decodes an authenticator in compliance to RFC 1832 (XDR).

Parameters:
xdrs - The XDR input stream.

All Packages  Class Hierarchy  This Package  Previous  Next  Index