Class SecurityLabel
- java.lang.Object
-
- rocks.xmpp.extensions.seclabel.model.SecurityLabel
-
public final class SecurityLabel extends Object
The implementation of the<securitylabel/>
element in theurn:xmpp:sec-label:0
namespace.- See Also:
- XEP-0258: Security Labels in XMPP, XML Schema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SecurityLabel.DisplayMarking
The implementation of the<displaymarking/>
element.
-
Constructor Summary
Constructors Constructor Description SecurityLabel()
SecurityLabel(Object primaryLabel)
SecurityLabel(Object primaryLabel, Collection<Object> equivalentLabels, SecurityLabel.DisplayMarking displayMarking)
SecurityLabel(Object primaryLabel, SecurityLabel.DisplayMarking displayMarking)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityLabel.DisplayMarking
getDisplayMarking()
Gets the display marking.List<Object>
getEquivalentLabels()
Gets the equivalent security labels.Object
getLabel()
Gets the primary security label.
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SecurityLabel
public SecurityLabel()
-
SecurityLabel
public SecurityLabel(Object primaryLabel)
-
SecurityLabel
public SecurityLabel(Object primaryLabel, SecurityLabel.DisplayMarking displayMarking)
-
SecurityLabel
public SecurityLabel(Object primaryLabel, Collection<Object> equivalentLabels, SecurityLabel.DisplayMarking displayMarking)
-
-
Method Detail
-
getDisplayMarking
public final SecurityLabel.DisplayMarking getDisplayMarking()
Gets the display marking.- Returns:
- The display marking.
-
getLabel
public final Object getLabel()
Gets the primary security label.- Returns:
- The primary security label or null to indicate the use of a default label.
-
getEquivalentLabels
public final List<Object> getEquivalentLabels()
Gets the equivalent security labels.Each equivalent label represents an equivalent security label under other policies. This element might be used when a recipient is known to hold a clearance under a different policy than the sender.
- Returns:
- The equivalent security labels.
-
-