Class SecurityHandler
java.lang.Object
org.apache.hadoop.oncrpc.security.SecurityHandler
- Direct Known Subclasses:
SysSecurityHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]Used by AUTH_SYS.intgetGid()Used by AUTH_SYS.intgetUid()Used by AUTH_SYS.abstract StringgetUser()abstract VerifiergetVerifer(RpcCall request) booleanbooleanabstract booleanshouldSilentlyDrop(RpcCall request) Used by GSS.byte[]Used by GSS.
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
SecurityHandler
public SecurityHandler()
-
-
Method Details
-
getUser
-
shouldSilentlyDrop
-
getVerifer
- Throws:
IOException
-
isUnwrapRequired
public boolean isUnwrapRequired() -
isWrapRequired
public boolean isWrapRequired() -
unwrap
Used by GSS.- Parameters:
request- RPC requestdata- request data- Returns:
- XDR response
- Throws:
IOException- fail to unwrap RPC call
-
wrap
Used by GSS.- Parameters:
request- RPC requestresponse- RPC response- Returns:
- response byte buffer
- Throws:
IOException- fail to wrap RPC call
-
getUid
public int getUid()Used by AUTH_SYS. Return the uid of the NFS user credential.- Returns:
- uid
-
getGid
public int getGid()Used by AUTH_SYS. Return the gid of the NFS user credential.- Returns:
- gid
-
getAuxGids
public int[] getAuxGids()Used by AUTH_SYS. Return the auxiliary gids of the NFS user credential.- Returns:
- auxiliary gids
-