Package com.tapkey.mobile.model
Class KeyDetails
- java.lang.Object
-
- com.tapkey.mobile.model.KeyDetails
-
public class KeyDetails extends Object
A set of information on a locally available mobile key.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getAutoRenewalScheduledAt()
Returns at what point this mobile key is scheduled to be automatically renewed.Date
getAutorenewedBefore()
Returns the latest point in time until when the key should get renewed.UserGrant
getGrant()
Returns the grant this mobile key has been issued for.String
getGrantId()
Returns the corresponding grant's ID.Date
getRenewableFrom()
Returns from which point in time this mobile key can be renewed.Date
getValidBefore()
Returns until when this mobile key is valid.
-
-
-
Method Detail
-
getRenewableFrom
public Date getRenewableFrom()
Returns from which point in time this mobile key can be renewed. Tapkey prevents renewal of mobile keys for a certain time after the key has been issued.- Returns:
- the Date from which on this mobile key can be renewed.
-
getAutoRenewalScheduledAt
public Date getAutoRenewalScheduledAt()
Returns at what point this mobile key is scheduled to be automatically renewed.- Returns:
- the Date on which this mobile key is going to be renewed.
-
getGrantId
public String getGrantId()
Returns the corresponding grant's ID. Always available. Each mobile key is issued based on a grant.- Returns:
- the grant's ID.
-
getValidBefore
public Date getValidBefore()
Returns until when this mobile key is valid.- Returns:
- the Date this mobile key is valid before.
-
getGrant
public UserGrant getGrant()
Returns the grant this mobile key has been issued for.- Returns:
- the Grant this mobile key has been issued for.
-
getAutorenewedBefore
public Date getAutorenewedBefore()
Returns the latest point in time until when the key should get renewed. If it's not renewed before this time, may be an issue and the user may be informed, if appropriate.- Returns:
- the latest point in time until the key should be renewed.
-
-