public final class SecurityManager extends StreamFeatureNegotiator
StreamFeatureNegotiator.Status| Constructor and Description |
|---|
SecurityManager(XmppSession xmppSession,
StreamFeatureListener streamFeatureListener,
boolean isSecure) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcess(Object element)
Checks, whether the element can be processed by the feature negotiator.
|
boolean |
needsRestart()
Checks, if the feature needs a stream restart after it has been successfully negotiated.
|
StreamFeatureNegotiator.Status |
processNegotiation(Object element)
Processes a feature protocol element or the feature element itself.
|
addFeatureListener, getFeatureClass, notifyFeatureNegotiated, removeFeatureListenerpublic SecurityManager(XmppSession xmppSession, StreamFeatureListener streamFeatureListener, boolean isSecure)
public StreamFeatureNegotiator.Status processNegotiation(Object element) throws Exception
StreamFeatureNegotiatorprocessNegotiation in class StreamFeatureNegotiatorelement - The XML element, which belongs to the feature negotiation, e.g. <challenge/> for SASL negotiation or the feature element itself, e.g. <mechanisms/>.Exception - Any exception which might be thrown during a feature negotiation. Note that any exception thrown during the feature negotiation process is thrown by the XmppSession.connect() method and therefore will abort the connection process.public boolean needsRestart()
StreamFeatureNegotiatorBy default this method returns false.
needsRestart in class StreamFeatureNegotiatorpublic boolean canProcess(Object element)
StreamFeatureNegotiatorcanProcess in class StreamFeatureNegotiatorelement - The feature protocol element, e.g. <challenge/>. The element is never the feature element itself, e.g. <mechanisms/>, which is advertised in the <stream:features/> element.Copyright © 2014 XMPP.rocks. All rights reserved.