- java.lang.Object
-
- com.zerodeplibs.webpush.PushSubscription.Keys
-
- Enclosing class:
- PushSubscription
public static class PushSubscription.Keys extends Object
This class represents a 'keys' field for a push subscription.
Thread Safety:Instances of this class are mutable. So use them carefully if they are accessed from multiple threads.
- Author:
- Tomoki Sato
- See Also:
PushSubscription
-
-
Constructor Summary
Constructors Constructor Description Keys()Creates a newPushSubscription.Keys.Keys(PushSubscription.Keys another)Creates a newPushSubscription.Keys.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Compares the given object with this object based on their properties.StringgetAuth()Gets the auth.StringgetP256dh()Gets the p256dh.inthashCode()Returns the hash code value for this object based on its properties.voidsetAuth(String auth)Sets the auth.voidsetP256dh(String p256dh)Sets the p256dh.StringtoString()
-
-
-
Constructor Detail
-
Keys
public Keys()
Creates a newPushSubscription.Keys.
-
Keys
public Keys(PushSubscription.Keys another)
Creates a newPushSubscription.Keys. All the fields are deeply copied fromanother.- Parameters:
another- an object from which the fields are copied.
-
-
Method Detail
-
getP256dh
public String getP256dh()
Gets the p256dh.- Returns:
- the value of the p256dh.
-
setP256dh
public void setP256dh(String p256dh)
Sets the p256dh.- Parameters:
p256dh- the value of the p256dh.
-
getAuth
public String getAuth()
Gets the auth.- Returns:
- the value of the auth.
-
setAuth
public void setAuth(String auth)
Sets the auth.- Parameters:
auth- the value of the auth.
-
equals
public boolean equals(Object o)
Compares the given object with this object based on their properties.
-
hashCode
public int hashCode()
Returns the hash code value for this object based on its properties.
-
-