Package com.jalios.jcms.push.servlet
Class DeviceToken
- java.lang.Object
-
- com.jalios.jcms.push.servlet.DeviceToken
-
public class DeviceToken extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DeviceToken()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static DeviceToken
generate(java.lang.String id, javax.servlet.http.HttpServletRequest request, long lifetime)
java.lang.Object
getAuthorizationObject()
java.lang.String
getDeviceId()
long
getExpirationTime()
java.lang.String
getRemoteIpAdress()
int
hashCode()
boolean
isValid()
void
setAuthorizationObject(java.lang.Object authorizationObject)
void
setDeviceId(java.lang.String deviceId)
void
setExpirationTime(long expirationTime)
void
setRemoteIpAdress(java.lang.String remoteIpAdress)
-
-
-
Method Detail
-
getDeviceId
public java.lang.String getDeviceId()
-
setDeviceId
public void setDeviceId(java.lang.String deviceId)
-
getExpirationTime
public long getExpirationTime()
-
setExpirationTime
public void setExpirationTime(long expirationTime)
-
getRemoteIpAdress
public java.lang.String getRemoteIpAdress()
-
setRemoteIpAdress
public void setRemoteIpAdress(java.lang.String remoteIpAdress)
-
isValid
public boolean isValid()
-
getAuthorizationObject
public java.lang.Object getAuthorizationObject()
-
setAuthorizationObject
public void setAuthorizationObject(java.lang.Object authorizationObject)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
generate
public static DeviceToken generate(java.lang.String id, javax.servlet.http.HttpServletRequest request, long lifetime)
-
-