Package com.mapr.security.simplesasl
Class SimpleSaslServer
- java.lang.Object
-
- com.mapr.security.simplesasl.SimpleSaslServer
-
- All Implemented Interfaces:
javax.security.sasl.SaslServer
public class SimpleSaslServer extends java.lang.Object implements javax.security.sasl.SaslServer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimpleSaslServer.SaslSimpleServerFactory
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSIMPLE_SECURITY_MECH_NAME
-
Constructor Summary
Constructors Constructor Description SimpleSaslServer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()byte[]evaluateResponse(byte[] response)java.lang.StringgetAuthorizationID()java.lang.StringgetMechanismName()java.lang.ObjectgetNegotiatedProperty(java.lang.String propName)booleanisComplete()byte[]unwrap(byte[] incoming, int offset, int len)byte[]wrap(byte[] outgoing, int offset, int len)
-
-
-
Field Detail
-
SIMPLE_SECURITY_MECH_NAME
public static final java.lang.String SIMPLE_SECURITY_MECH_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
dispose
public void dispose() throws javax.security.sasl.SaslException- Specified by:
disposein interfacejavax.security.sasl.SaslServer- Throws:
javax.security.sasl.SaslException
-
evaluateResponse
public byte[] evaluateResponse(byte[] response) throws javax.security.sasl.SaslException- Specified by:
evaluateResponsein interfacejavax.security.sasl.SaslServer- Throws:
javax.security.sasl.SaslException
-
getAuthorizationID
public java.lang.String getAuthorizationID()
- Specified by:
getAuthorizationIDin interfacejavax.security.sasl.SaslServer
-
getMechanismName
public java.lang.String getMechanismName()
- Specified by:
getMechanismNamein interfacejavax.security.sasl.SaslServer
-
getNegotiatedProperty
public java.lang.Object getNegotiatedProperty(java.lang.String propName)
- Specified by:
getNegotiatedPropertyin interfacejavax.security.sasl.SaslServer
-
isComplete
public boolean isComplete()
- Specified by:
isCompletein interfacejavax.security.sasl.SaslServer
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws javax.security.sasl.SaslException- Specified by:
unwrapin interfacejavax.security.sasl.SaslServer- Throws:
javax.security.sasl.SaslException
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws javax.security.sasl.SaslException- Specified by:
wrapin interfacejavax.security.sasl.SaslServer- Throws:
javax.security.sasl.SaslException
-
-