Class KeyDetails


  • public class KeyDetails
    extends Object
    A set of information on a locally available mobile key.
    • Constructor Detail

      • KeyDetails

        public KeyDetails​(String grantId,
                          net.tpky.mc.model.Grant grant,
                          Date validBefore,
                          Date renewableFrom,
                          Date autorenewedAt,
                          Date autorenewedBefore)
    • 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

        @Deprecated
        public net.tpky.mc.model.Grant getGrant()
        Deprecated.
        as of version 2. Use getGrantId() instead, and use the Management API to query for Grant details.
        Returns the corresponding grant, if available. Each mobile key is issued based on a grant.
        Returns:
        the Grant this mobile key is based on or null, if loading additional information about the Grant failed.
      • 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.