org.apache.hadoop.oncrpc.security
Class Verifier

java.lang.Object
  extended by org.apache.hadoop.oncrpc.security.RpcAuthInfo
      extended by org.apache.hadoop.oncrpc.security.Verifier
Direct Known Subclasses:
VerifierGSS, VerifierNone

public abstract class Verifier
extends RpcAuthInfo

Base class for verifier. Currently our authentication only supports 3 types of auth flavors: RpcAuthInfo.AuthFlavor.AUTH_NONE, RpcAuthInfo.AuthFlavor.AUTH_SYS, and RpcAuthInfo.AuthFlavor.RPCSEC_GSS. Thus for verifier we only need to handle AUTH_NONE and RPCSEC_GSS


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.oncrpc.security.RpcAuthInfo
RpcAuthInfo.AuthFlavor
 
Field Summary
static Verifier VERIFIER_NONE
           
 
Constructor Summary
protected Verifier(RpcAuthInfo.AuthFlavor flavor)
           
 
Method Summary
static Verifier readFlavorAndVerifier(XDR xdr)
          Read both AuthFlavor and the verifier from the XDR
static void writeFlavorAndVerifier(Verifier verifier, XDR xdr)
          Write AuthFlavor and the verifier to the XDR
 
Methods inherited from class org.apache.hadoop.oncrpc.security.RpcAuthInfo
getFlavor, read, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERIFIER_NONE

public static final Verifier VERIFIER_NONE
Constructor Detail

Verifier

protected Verifier(RpcAuthInfo.AuthFlavor flavor)
Method Detail

readFlavorAndVerifier

public static Verifier readFlavorAndVerifier(XDR xdr)
Read both AuthFlavor and the verifier from the XDR


writeFlavorAndVerifier

public static void writeFlavorAndVerifier(Verifier verifier,
                                          XDR xdr)
Write AuthFlavor and the verifier to the XDR



Copyright © 2014 Apache Software Foundation. All Rights Reserved.