java.rmi.constraint
Interface RelativeTimeConstraint

All Superinterfaces:
SecurityConstraint
All Known Implementing Classes:
DelegationRelativeTime, ConstraintAlternatives

public interface RelativeTimeConstraint
extends SecurityConstraint

Implemented by constraints that are expressed in terms of relative time.

Since:
1.4

Method Summary
 SecurityConstraint makeAbsolute(long baseTime)
          Converts this constraint to absolute time.
 
Methods inherited from interface java.rmi.constraint.SecurityConstraint
reduceBy
 

Method Detail

makeAbsolute

public SecurityConstraint makeAbsolute(long baseTime)
Converts this constraint to absolute time. Takes an absolute time, specified in milliseconds from midnight, January 1, 1970 UTC, and returns a constraint that has the relative times converted to absolute times by adding the specified absolute time to each relative time in the constraint. If the addition results in underflow or overflow, a time value of Long.MIN_VALUE or Long.MAX_VALUE is used, respectively.
Parameters:
baseTime - an absolute time, specified in milliseconds from midnight, January 1, 1970 UTC
Returns:
a constraint that has the relative times converted to absolute times by adding the specified absolute time to each relative time


Copyright © 2000 Sun Microsystems, Inc. All rights reserved