Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
org.direct_bt.SMPSignatureResolvingKeyInfo Class Reference

SMP Signature Resolving Key Info, used for platform agnostic persistence. More...

Collaboration diagram for org.direct_bt.SMPSignatureResolvingKeyInfo:

Classes

class  Properties
 SMPSignatureResolvingKeyInfo PropertyType Bit Mask More...
 
enum  PropertyType
 SMPSignatureResolvingKeyInfo Property Bits More...
 

Public Member Functions

 SMPSignatureResolvingKeyInfo (final byte source[], final int pos)
 Construct instance via given source byte array. More...
 
 SMPSignatureResolvingKeyInfo ()
 Construct emoty unset instance. More...
 
void putStream (final byte[] source, int pos)
 Method transfers all bytes representing a SMPLongTermKeyInfo from the given source array at the given position into this instance. More...
 
final void getStream (final byte[] sink, int pos)
 Method transfers all bytes representing this instance into the given destination array at the given position. More...
 
final boolean isResponder ()
 
String toString ()
 

Public Attributes

Properties properties
 Properties bit mask. More...
 
byte csrk []
 Connection Signature Resolving Key (CSRK) More...
 

Static Public Attributes

static final int byte_size = 1+16
 Size of the byte stream representation in bytes. More...
 

Detailed Description

SMP Signature Resolving Key Info, used for platform agnostic persistence.

Notable: No endian wise conversion shall occur on this data, since the encryption values are interpreted as a byte stream.

Byte layout must be synchronized with native direct_bt::SMPSignatureResolvingKey

Since
2.2.0

Definition at line 39 of file SMPSignatureResolvingKeyInfo.java.

Constructor & Destructor Documentation

◆ SMPSignatureResolvingKeyInfo() [1/2]

org.direct_bt.SMPSignatureResolvingKeyInfo.SMPSignatureResolvingKeyInfo ( final byte  source[],
final int  pos 
)

Construct instance via given source byte array.

Definition at line 129 of file SMPSignatureResolvingKeyInfo.java.

Here is the call graph for this function:

◆ SMPSignatureResolvingKeyInfo() [2/2]

org.direct_bt.SMPSignatureResolvingKeyInfo.SMPSignatureResolvingKeyInfo ( )

Construct emoty unset instance.

Definition at line 138 of file SMPSignatureResolvingKeyInfo.java.

Member Function Documentation

◆ getStream()

final void org.direct_bt.SMPSignatureResolvingKeyInfo.getStream ( final byte[]  sink,
int  pos 
)

Method transfers all bytes representing this instance into the given destination array at the given position.

Implementation is consistent with SMPLongTermKeyInfo(byte[], int).

Parameters
sinkthe destination array
posstarting position in the destination array
See also
#SMPLongTermKeyInfo(byte[], int)
putStream(byte[], int)

Definition at line 172 of file SMPSignatureResolvingKeyInfo.java.

Here is the caller graph for this function:

◆ isResponder()

final boolean org.direct_bt.SMPSignatureResolvingKeyInfo.isResponder ( )

Definition at line 180 of file SMPSignatureResolvingKeyInfo.java.

Here is the call graph for this function:

◆ putStream()

void org.direct_bt.SMPSignatureResolvingKeyInfo.putStream ( final byte[]  source,
int  pos 
)

Method transfers all bytes representing a SMPLongTermKeyInfo from the given source array at the given position into this instance.

Implementation is consistent with getStream(byte[], int).

Parameters
sourcethe source array
posstarting position in the source array
See also
getStream(byte[], int)

Definition at line 153 of file SMPSignatureResolvingKeyInfo.java.

Here is the caller graph for this function:

◆ toString()

String org.direct_bt.SMPSignatureResolvingKeyInfo.toString ( )

Definition at line 183 of file SMPSignatureResolvingKeyInfo.java.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ byte_size

final int org.direct_bt.SMPSignatureResolvingKeyInfo.byte_size = 1+16
static

Size of the byte stream representation in bytes.

See also
getStream(byte[], int)

Definition at line 126 of file SMPSignatureResolvingKeyInfo.java.

◆ csrk

byte org.direct_bt.SMPSignatureResolvingKeyInfo.csrk[]

Connection Signature Resolving Key (CSRK)

Definition at line 120 of file SMPSignatureResolvingKeyInfo.java.

◆ properties

Properties org.direct_bt.SMPSignatureResolvingKeyInfo.properties

Properties bit mask.

1 octet or 8 bits.

Definition at line 117 of file SMPSignatureResolvingKeyInfo.java.


The documentation for this class was generated from the following file: