com.amazonaws.auth.policy.conditions
Class DateCondition

java.lang.Object
  extended by com.amazonaws.auth.policy.Condition
      extended by com.amazonaws.auth.policy.conditions.DateCondition

public class DateCondition
extends Condition

AWS access control policy condition that allows an access control statement to be conditionally applied based on the comparison of the current time at which a request is received, and a specific date.


Nested Class Summary
static class DateCondition.DateComparisonType
          Enumeration of the supported ways a date comparison can be evaluated.
 
Constructor Summary
DateCondition(DateCondition.DateComparisonType type, Date date)
          Constructs a new access policy condition that compares the current time (on the AWS servers) to the specified date.
 
Method Summary
 
Methods inherited from class com.amazonaws.auth.policy.Condition
getConditionKey, getType, getValues, setConditionKey, setType, setValues, withConditionKey, withType, withValues, withValues
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateCondition

public DateCondition(DateCondition.DateComparisonType type,
                     Date date)
Constructs a new access policy condition that compares the current time (on the AWS servers) to the specified date.

Parameters:
type - The type of comparison to perform. For example, DateCondition.DateComparisonType.DateLessThan will cause this policy condition to evaluate to true if the current date is less than the date specified in the second argument.
date - The date to compare against.


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.