All Downloads are FREE. Search and download functionalities are using the official Maven repository.

java.com.ionic.sdk.keyvault.KeyVaultTimeUtil Maven / Gradle / Ivy

Go to download

The Ionic Java SDK provides an easy-to-use interface to the Ionic Platform.

There is a newer version: 2.9.0
Show newest version
package com.ionic.sdk.keyvault;

import com.ionic.sdk.agent.Agent;

/**
 * A utility class for managing server time.
 */
public final class KeyVaultTimeUtil {

    /**
     * Constructor.
     * http://checkstyle.sourceforge.net/config_design.html#FinalClass
     */
    private KeyVaultTimeUtil() {
    }

    /**
     * Get the current server time UTC seconds.
     * 

* This method returns the current server time UTC seconds. See {@link Agent#getServerTimeUtcMillis()} * for more information about how this time value is determined and why it is useful. *

* This method should be used for calculating the issued time and expiration time of * a key (see {@link KeyVaultKey#setIssuedServerTimeUtcSeconds(long)} and * {@link KeyVaultKey#setExpirationServerTimeUtcSeconds(long)}). * * @return Server time in UTC seconds * @see com.ionic.sdk.core.date.DateTime */ public static long getCurrentServerTimeUtcSeconds() { return Agent.getServerTimeUtcSecs(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy