Class Verifier
java.lang.Object
org.apache.hadoop.oncrpc.security.RpcAuthInfo
org.apache.hadoop.oncrpc.security.Verifier
- Direct Known Subclasses:
VerifierGSS,VerifierNone
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VerifierreadFlavorAndVerifier(XDR xdr) Read both AuthFlavor and the verifier from the XDR.static voidwriteFlavorAndVerifier(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
-
Constructor Details
-
Verifier
-
-
Method Details
-
readFlavorAndVerifier
Read both AuthFlavor and the verifier from the XDR.- Parameters:
xdr- XDR message- Returns:
- verifier
-
writeFlavorAndVerifier
Write AuthFlavor and the verifier to the XDR.- Parameters:
verifier- written to XDRxdr- XDR message
-