pub unsafe static kODPolicyAttributeExpiresOnDate: Option<&'static ODPolicyAttributeType>CFOpenDirectoryConstants only.Expand description
Policy attribute for the “expires on” date.
Policy attribute for the “expires on” date. Used as a key in the policy parameter dictionary, with a CFDate value. Also used in policy strings. The date is specified as a CFDate representing a fixed date, appropriate for the locale. Use in policies when comparing other date-based attributes.
This attribute is typically used in Authentication policies to control when authentications are allowed. This policy would disallow authentications on Jan 1, 2014 (assumes the date formatter is properly configured for the locale): @ { kODPolicyKeyIdentifier : “ expires on Jan 1“, kODPolicyKeyParameters : @ { kODPolicyAttributeExpiresOnDate : [localFormatter dateWithString: “ 01/01/2014“] }, kODPolicyKeyContent : [NSString stringWithFormat: “ % @ < % “ , kODPolicyAttributeCurrentDate, kODPolicyAttributeExpiresOnDate]};
See also Apple’s documentation