org.apache.hadoop.oncrpc.security
Class SecurityHandler

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

public abstract class SecurityHandler
extends Object


Field Summary
static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
SecurityHandler()
           
 
Method Summary
 int[] getAuxGids()
          Used by AUTH_SYS
 int getGid()
          Used by AUTH_SYS
 int getUid()
          Used by AUTH_SYS
abstract  String getUser()
           
abstract  Verifier getVerifer(RpcCall request)
           
 boolean isUnwrapRequired()
           
 boolean isWrapRequired()
           
abstract  boolean shouldSilentlyDrop(RpcCall request)
           
 XDR unwrap(RpcCall request, byte[] data)
          Used by GSS
 byte[] wrap(RpcCall request, XDR response)
          Used by GSS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

SecurityHandler

public SecurityHandler()
Method Detail

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

Throws:
IOException

wrap

public byte[] wrap(RpcCall request,
                   XDR response)
            throws IOException
Used by GSS

Throws:
IOException

getUid

public int getUid()
Used by AUTH_SYS


getGid

public int getGid()
Used by AUTH_SYS


getAuxGids

public int[] getAuxGids()
Used by AUTH_SYS



Copyright © 2014 Apache Software Foundation. All Rights Reserved.