| Modifier and Type | Field and Description |
|---|---|
static int |
DontSendAttributes |
protected byte[] |
externalData |
protected com.upokecenter.cbor.CBORObject |
objDontSend |
protected com.upokecenter.cbor.CBORObject |
objProtected |
protected com.upokecenter.cbor.CBORObject |
objUnprotected |
static int |
ProtectedAttributes |
protected byte[] |
rgbProtected |
static int |
UnprotectedAttributes |
| Constructor and Description |
|---|
Attribute() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(com.upokecenter.cbor.CBORObject label,
com.upokecenter.cbor.CBORObject value,
int where)
Set an attribute in the COSE object.
|
void |
addAttribute(HeaderKeys label,
byte[] value,
int where)
Set an attribute in the COSE object.
|
void |
addAttribute(HeaderKeys label,
com.upokecenter.cbor.CBORObject value,
int where)
Set an attribute in the COSE object.
|
void |
AddProtected(com.upokecenter.cbor.CBORObject label,
com.upokecenter.cbor.CBORObject value)
|
void |
AddProtected(HeaderKeys label,
byte[] value)
Deprecated.
use
addAttribute(HeaderKeys, byte[], int)
with ProtectedAttributes |
void |
AddProtected(HeaderKeys label,
com.upokecenter.cbor.CBORObject value)
|
void |
AddUnprotected(com.upokecenter.cbor.CBORObject label,
com.upokecenter.cbor.CBORObject value) |
void |
AddUnprotected(HeaderKeys label,
byte[] value) |
void |
AddUnprotected(HeaderKeys label,
com.upokecenter.cbor.CBORObject value) |
com.upokecenter.cbor.CBORObject |
findAttribute(com.upokecenter.cbor.CBORObject label)
Locate an attribute in one of the attribute buckets The buckets are
searched in the order protected, unprotected, unsent.
|
com.upokecenter.cbor.CBORObject |
findAttribute(HeaderKeys key)
Locate an attribute in one of the attribute buckets The buckets are
searched in the order protected, unprotected, unsent.
|
void |
setExternal(byte[] rgbData)
Set the optional external data field to be authenticated
|
protected com.upokecenter.cbor.CBORObject objProtected
protected com.upokecenter.cbor.CBORObject objUnprotected
protected com.upokecenter.cbor.CBORObject objDontSend
protected byte[] rgbProtected
protected byte[] externalData
public static final int ProtectedAttributes
public static final int UnprotectedAttributes
public static final int DontSendAttributes
public void addAttribute(com.upokecenter.cbor.CBORObject label,
com.upokecenter.cbor.CBORObject value,
int where)
label - CBOR object which identifies the attribute in the mapvalue - CBOR object which contains the value of the attributewhere - Identifies which of the buckets to place the attribute in.
ProtectedAttributes - attributes cryptographically protected
UnprotectedAttributes - attributes not cryptographically protected
DontSendAttributes - attributes used locally and not transmittedpublic void addAttribute(HeaderKeys label, com.upokecenter.cbor.CBORObject value, int where)
label - HeaderKeys label which identifies the attribute in the mapvalue - CBOR object which contains the value of the attributewhere - Identifies which of the buckets to place the attribute in.
ProtectedAttributes - attributes cryptographically protected
UnprotectedAttributes - attributes not cryptographically protected
DontSendAttributes - attributes used locally and not transmittedpublic void addAttribute(HeaderKeys label, byte[] value, int where)
label - HeaderKeys label which identifies the attribute in the mapvalue - CBOR object which contains the value of the attributewhere - Identifies which of the buckets to place the attribute in.
ProtectedAttributes - attributes cryptographically protected
UnprotectedAttributes - attributes not cryptographically protected
DontSendAttributes - attributes used locally and not transmitted@Deprecated public void AddProtected(com.upokecenter.cbor.CBORObject label, com.upokecenter.cbor.CBORObject value)
label - CBOR object which identifies the attribute in the mapvalue - CBOR object which contains the value of the attribute@Deprecated public void AddProtected(HeaderKeys label, com.upokecenter.cbor.CBORObject value)
label - HeaderKeys label which identifies the attribute in the mapvalue - CBOR object which contains the value of the attribute@Deprecated public void AddProtected(HeaderKeys label, byte[] value)
addAttribute(HeaderKeys, byte[], int)
with ProtectedAttributeslabel - CBOR object which identifies the attribute in the mapvalue - byte array of valuepublic void AddUnprotected(com.upokecenter.cbor.CBORObject label,
com.upokecenter.cbor.CBORObject value)
public void AddUnprotected(HeaderKeys label, com.upokecenter.cbor.CBORObject value)
public void AddUnprotected(HeaderKeys label, byte[] value)
public com.upokecenter.cbor.CBORObject findAttribute(com.upokecenter.cbor.CBORObject label)
label - - Label of the value to be searched forpublic com.upokecenter.cbor.CBORObject findAttribute(HeaderKeys key)
key - - HeaderKey enumeration value to search forpublic void setExternal(byte[] rgbData)
rgbData - - data to be authenticatedCOSE for Java documentation, generatedin 2016.