org.omg.CosTime

Interface TimeServiceOperations

public interface TimeServiceOperations

The TimeService interface provides operations for obtaining the current time, constructing a UTO with specified values for each attribute, and constructing a TIO wuth specified upped and lower bounds.
Method Summary
TIOnew_interval(long lower, long upper)
Operation new_interval
UTOnew_universal_time(long time, long inaccuracy, short tdf)
Operation new_universal_time
UTOsecure_universal_time()
The secure_universal_time operation returns the current time in a UTO only if the time can be guaranteed to have been obtained securely.
UTOuniversal_time()
The universal_time operation returns the current time and an estimate of inaccuracy in a UTO.
UTOuto_from_utc(UtcT utc)
Operation uto_from_utc

Method Detail

new_interval

public TIO new_interval(long lower, long upper)
Operation new_interval

new_universal_time

public UTO new_universal_time(long time, long inaccuracy, short tdf)
Operation new_universal_time

secure_universal_time

public UTO secure_universal_time()
The secure_universal_time operation returns the current time in a UTO only if the time can be guaranteed to have been obtained securely. In order to make such a guarantee, the underlying TimeService must meet the criteria to be followed for secure time implementation guideslines. If there is any uncertainty at all about meeting any aspect of these criteria, then this operation must return the TimeUnavailable exception. Thus, time obtained through this operation can alwys be trusted.

universal_time

public UTO universal_time()
The universal_time operation returns the current time and an estimate of inaccuracy in a UTO. It raises TimeUnavailable exceptions to indicate failure of an underlying time provider. The time returned in the UTO by this operation is not guaranteed to be secure or trusted. If any time is available at alll, that tile is returned by this operation.

uto_from_utc

public UTO uto_from_utc(UtcT utc)
Operation uto_from_utc