Class PushEndpoint
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.PushEndpoint
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,IDBean
,Cacheable
A bean to store push notification endpoint data.
- Since:
- 10.0
- Version:
- 10.6
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
equals
(PushEndpoint pe) getAuth()
Returns the endpoint auth secret.Returns the creation time of this endpoint.getHost()
Returns the endpoint host.Returns the endpoint public key.getURL()
Returns the endpoint URL.int
hashCode()
void
Updates the endpoint auth secret.void
setCreatedOn
(Instant dt) Updates the creation date of this endpoint.void
setPub256DH
(String pubDH) Updates the endpoint public key.toString()
Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, setID, validateID, validateID
-
Constructor Details
-
PushEndpoint
Creates the endpoint.- Parameters:
id
- the user's database IDurl
- the endpoint URL
-
-
Method Details
-
getURL
-
getHost
-
getCreatedOn
Returns the creation time of this endpoint.- Returns:
- the creation date/time
-
getAuth
-
getPub256DH
-
setAuth
-
setPub256DH
-
setCreatedOn
Updates the creation date of this endpoint.- Parameters:
dt
- the date/time
-
hashCode
public int hashCode()- Overrides:
hashCode
in classDatabaseBean
-
toString
-
equals
-