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 TypeMethodDescriptionbooleanequals(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.inthashCode()voidUpdates the endpoint auth secret.voidsetCreatedOn(Instant dt) Updates the creation date of this endpoint.voidsetPub256DH(String pubDH) Updates the endpoint public key.toString()Methods inherited from class DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intbooleangetHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.voidsetID(int id) Update the database row ID of this bean.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.
-
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:
hashCodein classDatabaseBean
-
toString
-
equals
-