org.apache.hive.service.auth
Class PlainSaslServer

java.lang.Object
  extended by org.apache.hive.service.auth.PlainSaslServer
All Implemented Interfaces:
SaslServer

public class PlainSaslServer
extends Object
implements SaslServer

PlainSaslServer. Sun JDK only provides PLAIN client and not server. This class implements the Plain SASL server conforming to RFC #4616 (http://www.ietf.org/rfc/rfc4616.txt)


Nested Class Summary
static class PlainSaslServer.ExternalAuthenticationCallback
           
static class PlainSaslServer.SaslPlainProvider
           
static class PlainSaslServer.SaslPlainServerFactory
           
 
Method Summary
 void dispose()
           
 byte[] evaluateResponse(byte[] response)
           
 String getAuthorizationID()
           
 String getMechanismName()
           
 Object getNegotiatedProperty(String propName)
           
 boolean isComplete()
           
 byte[] unwrap(byte[] incoming, int offset, int len)
           
 byte[] wrap(byte[] outgoing, int offset, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMechanismName

public String getMechanismName()
Specified by:
getMechanismName in interface SaslServer

evaluateResponse

public byte[] evaluateResponse(byte[] response)
                        throws SaslException
Specified by:
evaluateResponse in interface SaslServer
Throws:
SaslException

isComplete

public boolean isComplete()
Specified by:
isComplete in interface SaslServer

getAuthorizationID

public String getAuthorizationID()
Specified by:
getAuthorizationID in interface SaslServer

unwrap

public byte[] unwrap(byte[] incoming,
                     int offset,
                     int len)
Specified by:
unwrap in interface SaslServer

wrap

public byte[] wrap(byte[] outgoing,
                   int offset,
                   int len)
Specified by:
wrap in interface SaslServer

getNegotiatedProperty

public Object getNegotiatedProperty(String propName)
Specified by:
getNegotiatedProperty in interface SaslServer

dispose

public void dispose()
Specified by:
dispose in interface SaslServer


Copyright © 2013 The Apache Software Foundation