summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/OobData.java
diff options
context:
space:
mode:
authorJakub Pawlowski <jpawlowski@google.com>2016-07-28 05:21:36 -0700
committerAndre Eisenbach <eisenbach@google.com>2016-08-11 22:18:19 +0000
commit1d30636fd774ec548a12df72070a3daef7c96716 (patch)
tree8b9fdf07226c7446d0607cacdb09891d28150e3f /framework/java/android/bluetooth/OobData.java
parenteb5d11ef2312cc9ac23ef93ad5144e8ccacc8c96 (diff)
Add LE Secure Connection data parsing (1/4)
Bug: 30460956 Change-Id: I8d6e721b3b04f5ca9e3e02f7f2b90487482e1b37
Diffstat (limited to 'framework/java/android/bluetooth/OobData.java')
-rw-r--r--framework/java/android/bluetooth/OobData.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/framework/java/android/bluetooth/OobData.java b/framework/java/android/bluetooth/OobData.java
index 01f72efb22..53ca97417a 100644
--- a/framework/java/android/bluetooth/OobData.java
+++ b/framework/java/android/bluetooth/OobData.java
@@ -26,6 +26,8 @@ import android.util.Log;
*/
public class OobData implements Parcelable {
private byte[] securityManagerTk;
+ private byte[] leSecureConnectionsConfirmation;
+ private byte[] leSecureConnectionsRandom;
public byte[] getSecurityManagerTk() {
return securityManagerTk;
@@ -35,10 +37,28 @@ public class OobData implements Parcelable {
this.securityManagerTk = securityManagerTk;
}
+ public byte[] getLeSecureConnectionsConfirmation() {
+ return leSecureConnectionsConfirmation;
+ }
+
+ public void setLeSecureConnectionsConfirmation(byte[] leSecureConnectionsConfirmation) {
+ this.leSecureConnectionsConfirmation = leSecureConnectionsConfirmation;
+ }
+
+ public byte[] getLeSecureConnectionsRandom() {
+ return leSecureConnectionsRandom;
+ }
+
+ public void setLeSecureConnectionsRandom(byte[] leSecureConnectionsRandom) {
+ this.leSecureConnectionsRandom = leSecureConnectionsRandom;
+ }
+
public OobData() { }
private OobData(Parcel in) {
securityManagerTk = in.createByteArray();
+ leSecureConnectionsConfirmation = in.createByteArray();
+ leSecureConnectionsRandom = in.createByteArray();
}
public int describeContents() {
@@ -48,6 +68,8 @@ public class OobData implements Parcelable {
@Override
public void writeToParcel(Parcel out, int flags) {
out.writeByteArray(securityManagerTk);
+ out.writeByteArray(leSecureConnectionsConfirmation);
+ out.writeByteArray(leSecureConnectionsRandom);
}
public static final Parcelable.Creator<OobData> CREATOR