Package com.mapr.security.maprsasl
Class MapRSaslImplBase
- java.lang.Object
-
- com.mapr.security.maprsasl.MapRSaslImplBase
-
- Direct Known Subclasses:
MaprSaslClient,MaprSaslServer
public class MapRSaslImplBase extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected booleancompletedprotected java.lang.StringnegotiatedQOPPropertyprotected intrawSendSizeSpecifies the maximum size of the raw send buffer in bytes of SaslClient/SaslServer.protected intrecvMaxBufSizeSpecifies the maximum size of the receive buffer in bytes of SaslClient/SaslServer.protected com.mapr.fs.proto.Security.KeysessionKey
-
Constructor Summary
Constructors Constructor Description MapRSaslImplBase(java.util.Map<java.lang.String,?> props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
completed
protected boolean completed
-
negotiatedQOPProperty
protected java.lang.String negotiatedQOPProperty
-
sessionKey
protected com.mapr.fs.proto.Security.Key sessionKey
-
rawSendSize
protected int rawSendSize
Specifies the maximum size of the raw send buffer in bytes of SaslClient/SaslServer.
-
recvMaxBufSize
protected int recvMaxBufSize
Specifies the maximum size of the receive buffer in bytes of SaslClient/SaslServer. If configured, its value should be same on both the client and the server.
-
-
Method Detail
-
getMechanismName
public java.lang.String getMechanismName()
-
isComplete
public boolean isComplete()
-
getNegotiatedProperty
public java.lang.Object getNegotiatedProperty(java.lang.String propName)
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws javax.security.sasl.SaslException- Throws:
javax.security.sasl.SaslException
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws javax.security.sasl.SaslException- Throws:
javax.security.sasl.SaslException
-
-