Class 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
    • 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.
        Overrides:
        equals in class Object
        Parameters:
        o - an object.
        Returns:
        true if the given object is equal to this object
      • hashCode

        public int hashCode()
        Returns the hash code value for this object based on its properties.
        Overrides:
        hashCode in class Object
        Returns:
        the hash code value for this object.