Package org.jivesoftware.openfire.sasl
Class ExternalClientSaslServer
- java.lang.Object
-
- org.jivesoftware.openfire.sasl.ExternalClientSaslServer
-
- All Implemented Interfaces:
SaslServer
public class ExternalClientSaslServer extends Object implements SaslServer
Implementation of the SASL EXTERNAL mechanism with PKIX to be used for client-to-server connections.
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLogstatic StringNAMEstatic SystemProperty<Boolean>PROPERTY_SASL_EXTERNAL_CLIENT_SUPPRESS_MATCHING_REALMNAME
-
Constructor Summary
Constructors Constructor Description ExternalClientSaslServer(LocalClientSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()byte[]evaluateResponse(byte[] response)StringgetAuthorizationID()StringgetMechanismName()ObjectgetNegotiatedProperty(String propName)booleanisComplete()byte[]unwrap(byte[] incoming, int offset, int len)byte[]wrap(byte[] outgoing, int offset, int len)
-
-
-
Field Detail
-
PROPERTY_SASL_EXTERNAL_CLIENT_SUPPRESS_MATCHING_REALMNAME
public static final SystemProperty<Boolean> PROPERTY_SASL_EXTERNAL_CLIENT_SUPPRESS_MATCHING_REALMNAME
-
Log
public static final org.slf4j.Logger Log
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExternalClientSaslServer
public ExternalClientSaslServer(LocalClientSession session) throws SaslException
- Throws:
SaslException
-
-
Method Detail
-
getMechanismName
public String getMechanismName()
- Specified by:
getMechanismNamein interfaceSaslServer
-
evaluateResponse
public byte[] evaluateResponse(byte[] response) throws SaslException- Specified by:
evaluateResponsein interfaceSaslServer- Throws:
SaslException
-
isComplete
public boolean isComplete()
- Specified by:
isCompletein interfaceSaslServer
-
getAuthorizationID
public String getAuthorizationID()
- Specified by:
getAuthorizationIDin interfaceSaslServer
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException- Specified by:
unwrapin interfaceSaslServer- Throws:
SaslException
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException- Specified by:
wrapin interfaceSaslServer- Throws:
SaslException
-
getNegotiatedProperty
public Object getNegotiatedProperty(String propName)
- Specified by:
getNegotiatedPropertyin interfaceSaslServer
-
dispose
public void dispose() throws SaslException- Specified by:
disposein interfaceSaslServer- Throws:
SaslException
-
-