Class SecurityHandler

java.lang.Object
org.apache.hadoop.oncrpc.security.SecurityHandler
Direct Known Subclasses:
SysSecurityHandler

public abstract class SecurityHandler extends Object
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
  • Constructor Details

    • SecurityHandler

      public SecurityHandler()
  • Method Details

    • getUser

      public abstract String getUser()
    • shouldSilentlyDrop

      public abstract boolean shouldSilentlyDrop(RpcCall request)
    • getVerifer

      public abstract Verifier getVerifer(RpcCall request) throws IOException
      Throws:
      IOException
    • isUnwrapRequired

      public boolean isUnwrapRequired()
    • isWrapRequired

      public boolean isWrapRequired()
    • unwrap

      public XDR unwrap(RpcCall request, byte[] data) throws IOException
      Used by GSS.
      Parameters:
      request - RPC request
      data - request data
      Returns:
      XDR response
      Throws:
      IOException - fail to unwrap RPC call
    • wrap

      public byte[] wrap(RpcCall request, XDR response) throws IOException
      Used by GSS.
      Parameters:
      request - RPC request
      response - 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