Class NfsAccessResponse
- Direct Known Subclasses:
Nfs3AccessResponse
Procedure ACCESS determines the access rights that a user, as identified by the credentials in the request, has with respect to a file system object. The client encodes the set of permissions that are to be checked in a bit mask. The server checks the permissions encoded in the bit mask. A status of NFS3_OK is returned along with a bit mask encoded with the permissions that the client is allowed.
The results of this procedure are necessarily advisory in nature. That is, a return status of NFS3_OK and the appropriate bit set in the bit mask does not imply that such access will be allowed to the file system object in the future, as access rights can be revoked by the server at any time.
-
Field Summary
Fields inherited from class RpcResponse
_xid -
Constructor Summary
ConstructorsConstructorDescriptionNfsAccessResponse(int nfsVersion) Creates the response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813). -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the access bits, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813):voidunmarshalling(Xdr xdr) Load this structure from the response data, as specified by RFC 1831 (https://tools.ietf.org/html/rfc1831).Methods inherited from class NfsResponseBase
getAttributes, getFileHandle, getState, makeNfsGetAttributes, makeNfsGetAttributes, stateIsOk, toString, unmarshallingAttributes, unmarshallingAttributes, unmarshallingFileHandle, unmarshallingFileHandleMethods inherited from class RpcResponse
getAcceptStatus, getDirection, getRejectStatus, getReplyStatus, getXid
-
Constructor Details
-
NfsAccessResponse
public NfsAccessResponse(int nfsVersion) Creates the response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).Procedure ACCESS determines the access rights that a user, as identified by the credentials in the request, has with respect to a file system object. The client encodes the set of permissions that are to be checked in a bit mask. The server checks the permissions encoded in the bit mask. A status of NFS3_OK is returned along with a bit mask encoded with the permissions that the client is allowed.
The results of this procedure are necessarily advisory in nature. That is, a return status of NFS3_OK and the appropriate bit set in the bit mask does not imply that such access will be allowed to the file system object in the future, as access rights can be revoked by the server at any time.
- Parameters:
nfsVersion- The NFS version number. This is ignored for now, as only NFSv3 is supported, but is included to allow future support for other versions.
-
-
Method Details
-
unmarshalling
Load this structure from the response data, as specified by RFC 1831 (https://tools.ietf.org/html/rfc1831).- Overrides:
unmarshallingin classNfsResponseBase- Parameters:
xdr- The xdr response data.- Throws:
RpcException
-
getAccess
public long getAccess()Returns the access bits, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813):ACCESS3_READ = 0x0001 - Read data from file or read a directory. ACCESS3_LOOKUP = 0x0002 - Look up a name in a directory (no meaning for non-directory objects). ACCESS3_MODIFY = 0x0004 - Rewrite existing file data or modify existing directory entries. ACCESS3_EXTEND = 0x0008 - Write new data or add directory entries. ACCESS3_DELETE = 0x0010 - Delete an existing directory entry. ACCESS3_EXECUTE = 0x0020 - Execute file (no meaning for a directory)..
-