Class PlainSaslServer
- java.lang.Object
-
- alluxio.security.authentication.plain.PlainSaslServer
-
- All Implemented Interfaces:
javax.security.sasl.SaslServer
@NotThreadSafe public final class PlainSaslServer extends java.lang.Object implements javax.security.sasl.SaslServer
This class provides PLAIN SASL authentication. NOTE: When this SaslServer works on authentication (i.e., in the methodevaluateResponse(byte[])
, it always assigns authentication ID to authorization ID currently.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlainSaslServer.Factory
This class is used to create an instances ofPlainSaslServer
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
byte[]
evaluateResponse(byte[] response)
java.lang.String
getAuthorizationID()
java.lang.String
getMechanismName()
java.lang.Object
getNegotiatedProperty(java.lang.String propName)
boolean
isComplete()
byte[]
unwrap(byte[] incoming, int offset, int len)
byte[]
wrap(byte[] outgoing, int offset, int len)
-
-
-
Method Detail
-
getMechanismName
public java.lang.String getMechanismName()
- Specified by:
getMechanismName
in interfacejavax.security.sasl.SaslServer
-
evaluateResponse
@Nullable public byte[] evaluateResponse(byte[] response) throws javax.security.sasl.SaslException
- Specified by:
evaluateResponse
in interfacejavax.security.sasl.SaslServer
- Throws:
javax.security.sasl.SaslException
-
isComplete
public boolean isComplete()
- Specified by:
isComplete
in interfacejavax.security.sasl.SaslServer
-
getAuthorizationID
public java.lang.String getAuthorizationID()
- Specified by:
getAuthorizationID
in interfacejavax.security.sasl.SaslServer
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len)
- Specified by:
unwrap
in interfacejavax.security.sasl.SaslServer
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len)
- Specified by:
wrap
in interfacejavax.security.sasl.SaslServer
-
getNegotiatedProperty
@Nullable public java.lang.Object getNegotiatedProperty(java.lang.String propName)
- Specified by:
getNegotiatedProperty
in interfacejavax.security.sasl.SaslServer
-
dispose
public void dispose()
- Specified by:
dispose
in interfacejavax.security.sasl.SaslServer
-
-