2017-07-19 15:17:12 +02:00
|
|
|
package org.jivesoftware.smackx.jingle3.internal;
|
|
|
|
|
|
|
|
import org.jivesoftware.smackx.jingle3.element.JingleContentSecurityElement;
|
|
|
|
import org.jivesoftware.smackx.jingle3.element.JingleElement;
|
|
|
|
import org.jivesoftware.smackx.jingle3.element.JingleContentSecurityInfoElement;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by vanitas on 18.07.17.
|
|
|
|
*/
|
|
|
|
public abstract class Security<D extends JingleContentSecurityElement> {
|
|
|
|
|
2017-07-21 17:58:57 +02:00
|
|
|
private Content parent;
|
|
|
|
|
2017-07-19 15:17:12 +02:00
|
|
|
public abstract D getElement();
|
|
|
|
|
|
|
|
public abstract JingleElement handleSecurityInfo(JingleContentSecurityInfoElement element);
|
2017-07-21 17:58:57 +02:00
|
|
|
|
|
|
|
public void setParent(Content parent) {
|
|
|
|
if (this.parent != parent) {
|
|
|
|
this.parent = parent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public Content getParent() {
|
|
|
|
return parent;
|
|
|
|
}
|
2017-07-19 15:17:12 +02:00
|
|
|
}
|