@Beta public class Security extends Object implements IMimdMetadataValue, INestedKlvValue
Constructor and Description |
---|
Security()
Create a new empty Security local set.
|
Security(byte[] bytes)
Construct Security Local Set from encoded bytes.
|
Security(byte[] data,
int offset,
int numBytes)
Build a Security Local Set from encoded bytes.
|
Security(Map<SecurityMetadataKey,IMimdMetadataValue> values)
Create the Security local set from the given key/value pairs.
|
Modifier and Type | Method and Description |
---|---|
static Security |
fromBytes(byte[] bytes)
Create Security Local Set from encoded bytes.
|
byte[] |
getBytes()
Get the encoded bytes.
|
Security_Classification |
getClassification()
Get the
classification attribute value. |
Security_ClassifyingMethod |
getClassifyingMethod()
Get the
classifyingMethod attribute value. |
String |
getDisplayableValue()
Return a string of the displayable value.
|
String |
getDisplayName()
Get the human-readable name for the value.
|
IKlvValue |
getField(IKlvKey tag)
Get the value of a given item.
|
Set<? extends IKlvKey> |
getIdentifiers()
Get the set of identifiers for populated values.
|
MimdId |
getMimdId()
Get the
mimdId attribute value. |
NumericalPrecision |
getNumericPrecision()
Get the
numericPrecision attribute value. |
MimdIdReference |
getSecurity()
Get the
security attribute value. |
MimdIdReference |
getTimer()
Get the
timer attribute value. |
Base_TimerOffset |
getTimerOffset()
Get the
timerOffset attribute value. |
void |
setClassification(Security_Classification classification)
Set the
classification attribute value. |
void |
setClassifyingMethod(Security_ClassifyingMethod classifyingMethod)
Set the
classifyingMethod attribute value. |
void |
setMimdId(MimdId mimdId)
Set the
mimdId attribute value. |
void |
setNumericPrecision(NumericalPrecision numericPrecision)
Set the
numericPrecision attribute value. |
void |
setSecurity(MimdIdReference security)
Set the
security attribute value. |
void |
setTimer(MimdIdReference timer)
Set the
timer attribute value. |
void |
setTimerOffset(Base_TimerOffset timerOffset)
Set the
timerOffset attribute value. |
public Security()
public Security(Map<SecurityMetadataKey,IMimdMetadataValue> values)
values
- Tag/value pairs to be included in the local setpublic Security(byte[] data, int offset, int numBytes) throws KlvParseException
data
- the bytes to build from.offset
- the offset into bytes
to start parsing from.numBytes
- the number of bytes to parse.KlvParseException
- if parsing fails (depending on InvalidDataHandler strategy)public Security(byte[] bytes) throws KlvParseException
bytes
- Encoded byte array.KlvParseException
- if the array could not be parsedpublic MimdId getMimdId()
mimdId
attribute value.public void setMimdId(MimdId mimdId)
mimdId
attribute value.mimdId
- the MimdId value to set.public MimdIdReference getTimer()
timer
attribute value.MimdIdReference
value, or null if not set.public void setTimer(MimdIdReference timer)
timer
attribute value.timer
- the MimdIdReference value to set.public Base_TimerOffset getTimerOffset()
timerOffset
attribute value.public void setTimerOffset(Base_TimerOffset timerOffset)
timerOffset
attribute value.timerOffset
- the org.jmisb.api.klv.st1904.Base_TimerOffset value to set.public NumericalPrecision getNumericPrecision()
numericPrecision
attribute value.public void setNumericPrecision(NumericalPrecision numericPrecision)
numericPrecision
attribute value.numericPrecision
- the NumericPrecision value to set.public MimdIdReference getSecurity()
security
attribute value.MimdIdReference
value, or null if not set.public void setSecurity(MimdIdReference security)
security
attribute value.security
- the MimdIdReference value to set.public Security_ClassifyingMethod getClassifyingMethod()
classifyingMethod
attribute value.public void setClassifyingMethod(Security_ClassifyingMethod classifyingMethod)
classifyingMethod
attribute value.classifyingMethod
- the org.jmisb.api.klv.st1903.Security_ClassifyingMethod value to set.public Security_Classification getClassification()
classification
attribute value.public void setClassification(Security_Classification classification)
classification
attribute value.classification
- the org.jmisb.api.klv.st1903.Security_Classification value to set.public static Security fromBytes(byte[] bytes) throws KlvParseException
bytes
- Encoded byte arrayKlvParseException
- if the array could not be parsedpublic byte[] getBytes()
IMimdMetadataValue
getBytes
in interface IMimdMetadataValue
public String getDisplayName()
IKlvValue
getDisplayName
in interface IKlvValue
public String getDisplayableValue()
IKlvValue
getDisplayableValue
in interface IKlvValue
public IKlvValue getField(IKlvKey tag)
INestedKlvValue
getField
in interface INestedKlvValue
tag
- Tag or other identifier of the value to retrievepublic Set<? extends IKlvKey> getIdentifiers()
INestedKlvValue
getIdentifiers
in interface INestedKlvValue
Copyright © 2022 West Ridge Systems. All rights reserved.