Class CredentialUnix
java.lang.Object
com.emc.ecs.nfsclient.rpc.CredentialBase
com.emc.ecs.nfsclient.rpc.CredentialUnix
- All Implemented Interfaces:
Credential
implement AUTH_UNIX for RPC, as specified by RFC 1831 (https://tools.ietf.org/html/rfc1831).
-
Field Summary
Fields inherited from interface Credential
AUTH_NONE -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor, with uid = 0 and gid = 0.CredentialUnix(int uid, int gid, Set<Integer> gids) Create the Credential. -
Method Summary
Modifier and TypeMethodDescriptionprotected XdrThe default value is a 0-byte array.protected intThe default value is AUTH_NONE.Methods inherited from class CredentialBase
getVerifier, getVerifierFlavor, marshalling
-
Constructor Details
-
CredentialUnix
-
CredentialUnix
public CredentialUnix()Default constructor, with uid = 0 and gid = 0.
-
-
Method Details
-
getCredentialFlavor
protected int getCredentialFlavor()The default value is AUTH_NONE.- Overrides:
getCredentialFlavorin classCredentialBase- Returns:
- The flavor.
-
getCredential
The default value is a 0-byte array.- Overrides:
getCredentialin classCredentialBase- Returns:
- An Xdr structure with the bytes.
-