Package org.jivesoftware.openfire.sasl
Class AnonymousSaslServer
- java.lang.Object
-
- org.jivesoftware.openfire.sasl.AnonymousSaslServer
-
- All Implemented Interfaces:
SaslServer
public class AnonymousSaslServer extends Object implements SaslServer
Implementation of the SASL ANONYMOUS mechanism.
-
-
Field Summary
Fields Modifier and Type Field Description static SystemProperty<Boolean>
ENABLED
static String
NAME
-
Constructor Summary
Constructors Constructor Description AnonymousSaslServer(LocalSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Field Detail
-
ENABLED
public static final SystemProperty<Boolean> ENABLED
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AnonymousSaslServer
public AnonymousSaslServer(LocalSession session)
-
-
Method Detail
-
getMechanismName
public String getMechanismName()
- Specified by:
getMechanismName
in interfaceSaslServer
-
evaluateResponse
public byte[] evaluateResponse(byte[] response) throws SaslException
- Specified by:
evaluateResponse
in interfaceSaslServer
- Throws:
SaslException
-
isComplete
public boolean isComplete()
- Specified by:
isComplete
in interfaceSaslServer
-
getAuthorizationID
public String getAuthorizationID()
- Specified by:
getAuthorizationID
in interfaceSaslServer
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException
- Specified by:
unwrap
in interfaceSaslServer
- Throws:
SaslException
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException
- Specified by:
wrap
in interfaceSaslServer
- Throws:
SaslException
-
getNegotiatedProperty
public Object getNegotiatedProperty(String propName)
- Specified by:
getNegotiatedProperty
in interfaceSaslServer
-
dispose
public void dispose() throws SaslException
- Specified by:
dispose
in interfaceSaslServer
- Throws:
SaslException
-
-