| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package android.security.keymaster; |
| 18 |
|
| 19 |
import android.compat.annotation.UnsupportedAppUsage; |
| 20 |
import android.os.Build; |
| 21 |
import android.os.Parcel; |
| 22 |
import android.os.Parcelable; |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
public class KeymasterBlob implements Parcelable { |
| 28 |
public byte[] blob; |
| 29 |
|
| 30 |
public KeymasterBlob(byte[] blob) { |
| 31 |
this.blob = blob; |
| 32 |
} |
| 33 |
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) |
| 34 |
public static final @android.annotation.NonNull Parcelable.Creator<KeymasterBlob> CREATOR = new |
| 35 |
Parcelable.Creator<KeymasterBlob>() { |
| 36 |
public KeymasterBlob createFromParcel(Parcel in) { |
| 37 |
return new KeymasterBlob(in); |
| 38 |
} |
| 39 |
|
| 40 |
public KeymasterBlob[] newArray(int length) { |
| 41 |
return new KeymasterBlob[length]; |
| 42 |
} |
| 43 |
}; |
| 44 |
|
| 45 |
protected KeymasterBlob(Parcel in) { |
| 46 |
blob = in.createByteArray(); |
| 47 |
} |
| 48 |
|
| 49 |
@Override |
| 50 |
public int describeContents() { |
| 51 |
return 0; |
| 52 |
} |
| 53 |
|
| 54 |
@Override |
| 55 |
public void writeToParcel(Parcel out, int flags) { |
| 56 |
out.writeByteArray(blob); |
| 57 |
} |
| 58 |
} |