Add LE Secure Connection data parsing (1/4)
Bug: 30460956
Change-Id: I8d6e721b3b04f5ca9e3e02f7f2b90487482e1b37
(cherry picked from commit 747711ce9b)
This commit is contained in:
@@ -31,6 +31,8 @@ import android.util.Log;
|
|||||||
*/
|
*/
|
||||||
public class OobData implements Parcelable {
|
public class OobData implements Parcelable {
|
||||||
private byte[] securityManagerTk;
|
private byte[] securityManagerTk;
|
||||||
|
private byte[] leSecureConnectionsConfirmation;
|
||||||
|
private byte[] leSecureConnectionsRandom;
|
||||||
|
|
||||||
public byte[] getSecurityManagerTk() {
|
public byte[] getSecurityManagerTk() {
|
||||||
return securityManagerTk;
|
return securityManagerTk;
|
||||||
@@ -45,10 +47,28 @@ public class OobData implements Parcelable {
|
|||||||
this.securityManagerTk = securityManagerTk;
|
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() { }
|
public OobData() { }
|
||||||
|
|
||||||
private OobData(Parcel in) {
|
private OobData(Parcel in) {
|
||||||
securityManagerTk = in.createByteArray();
|
securityManagerTk = in.createByteArray();
|
||||||
|
leSecureConnectionsConfirmation = in.createByteArray();
|
||||||
|
leSecureConnectionsRandom = in.createByteArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int describeContents() {
|
public int describeContents() {
|
||||||
@@ -58,6 +78,8 @@ public class OobData implements Parcelable {
|
|||||||
@Override
|
@Override
|
||||||
public void writeToParcel(Parcel out, int flags) {
|
public void writeToParcel(Parcel out, int flags) {
|
||||||
out.writeByteArray(securityManagerTk);
|
out.writeByteArray(securityManagerTk);
|
||||||
|
out.writeByteArray(leSecureConnectionsConfirmation);
|
||||||
|
out.writeByteArray(leSecureConnectionsRandom);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final Parcelable.Creator<OobData> CREATOR
|
public static final Parcelable.Creator<OobData> CREATOR
|
||||||
|
|||||||
Reference in New Issue
Block a user