Class PushEndpoint

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.PushEndpoint
All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, Cacheable

public class PushEndpoint extends DatabaseBean
A bean to store push notification endpoint data.
Since:
10.0
Version:
10.6
Author:
Luke
See Also:
  • Constructor Details

    • PushEndpoint

      public PushEndpoint(int id, String url)
      Creates the endpoint.
      Parameters:
      id - the user's database ID
      url - the endpoint URL
  • Method Details

    • getURL

      public String getURL()
      Returns the endpoint URL.
      Returns:
      the URL
    • getHost

      public String getHost()
      Returns the endpoint host.
      Returns:
      the host name
    • getCreatedOn

      public Instant getCreatedOn()
      Returns the creation time of this endpoint.
      Returns:
      the creation date/time
    • getAuth

      public String getAuth()
      Returns the endpoint auth secret.
      Returns:
      the secret
    • getPub256DH

      public String getPub256DH()
      Returns the endpoint public key.
      Returns:
      the key
    • setAuth

      public void setAuth(String auth)
      Updates the endpoint auth secret.
      Parameters:
      auth - the secret
    • setPub256DH

      public void setPub256DH(String pubDH)
      Updates the endpoint public key.
      Parameters:
      pubDH - the key
    • setCreatedOn

      public void setCreatedOn(Instant dt)
      Updates the creation date of this endpoint.
      Parameters:
      dt - the date/time
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DatabaseBean
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(PushEndpoint pe)