public class WebPushSubscription extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
byte[] |
appServerKey
This is an optional public key provided by the application server to authenticate
itself with the endpoint, formatted according to X9.62.
|
byte[] |
authSecret
16 byte secret key, generated by the embedder, to be provided to the app server for use
in encrypting and authenticating messages sent to the
endpoint . |
byte[] |
browserPublicKey
The P-256 EC public key, formatted as X9.62, generated by the embedder, to be provided
to the app server for message encryption.
|
static Parcelable.Creator<WebPushSubscription> |
CREATOR |
String |
endpoint
The Web Push endpoint for this subscription.
|
String |
scope
The Service Worker scope associated with this subscription.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
WebPushSubscription(String scope,
String endpoint,
byte[] appServerKey,
byte[] browserPublicKey,
byte[] authSecret) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
void |
writeToParcel(Parcel out,
int flags) |
@NonNull public final String scope
@NonNull public final String endpoint
@Nullable public final byte[] appServerKey
@NonNull public final byte[] browserPublicKey
@NonNull public final byte[] authSecret
endpoint
.public static final Parcelable.Creator<WebPushSubscription> CREATOR
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel out, int flags)
writeToParcel
in interface Parcelable