Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
Go to the documentation of this file.
26 package org.direct_bt;
64 public static PropertyType get(
final String name)
throws IllegalArgumentException {
75 case (
byte) 0x01:
return RESPONDER;
76 case (
byte) 0x02:
return AUTH;
104 final StringBuilder out =
new StringBuilder();
109 if( 0 < count ) { out.append(
", "); }
112 return "["+out.toString()+
"]";
130 if(
byte_size > ( source.length - pos ) ) {
131 throw new IllegalArgumentException(
"Stream ( "+source.length+
" - "+pos+
" ) < "+
byte_size+
" bytes");
154 if(
byte_size > ( source.length - pos ) ) {
155 throw new IllegalArgumentException(
"Stream ( "+source.length+
" - "+pos+
" ) < "+
byte_size+
" bytes");
158 System.arraycopy(source, pos,
csrk, 0, 16); pos+=16;
172 public final void getStream(
final byte[] sink,
int pos) {
173 if(
byte_size > ( sink.length - pos ) ) {
174 throw new IllegalArgumentException(
"Stream ( "+sink.length+
" - "+pos+
" ) < "+
byte_size+
" bytes");
177 System.arraycopy(
csrk, 0, sink, pos, 16); pos+=16;
void putStream(final byte[] source, int pos)
Method transfers all bytes representing a SMPLongTermKeyInfo from the given source array at the given...
Properties properties
Properties bit mask.
final void getStream(final byte[] sink, int pos)
Method transfers all bytes representing this instance into the given destination array at the given p...
SMPSignatureResolvingKeyInfo Property Bits
SMPSignatureResolvingKeyInfo PropertyType Bit Mask
SMPSignatureResolvingKeyInfo(final byte source[], final int pos)
Construct instance via given source byte array.
static final int byte_size
Size of the byte stream representation in bytes.
RESPONDER
Responder Key (LL slave).
SMPSignatureResolvingKeyInfo()
Construct emoty unset instance.
NONE
No specific property.
PropertyType(final byte v)
byte csrk[]
Connection Signature Resolving Key (CSRK)
byte mask
The PropertyType bit mask.
SMP Signature Resolving Key Info, used for platform agnostic persistence.
static String bytesHexString(final byte[] bytes, final int offset, final int length, final boolean lsbFirst)
Produce a lower-case hexadecimal string representation of the given byte values.
final boolean isResponder()
boolean isSet(final PropertyType bit)