pub unsafe static kODPolicyAttributeEnableOnDayOfWeek: Option<&'static ODPolicyAttributeType>CFOpenDirectoryConstants only.Expand description
Policy attribute for enable on a day of the week.
Policy attribute for enable on a day of the week. Specified as a in units appropriate for the local calendar. The range is 1 through 7, with 1 representing the first day of the week in the local calendar, and 7 representing the last day of the week.
This attribute is used as a key in the policy parameter dictionary, with a CFNumber value, and in policy strings. Typically used i policy strings to compare against the another day of the week. For example, to allow authentications only on Monday through Friday, the policy would be (assumes Monday = 2 and Friday = 6 in the local calendar): @ { kODPolicyKeyIdentifier : “ mon-fri only“, kODPolicyKeyParameters : @ { kODPolicyAttributeEnableOnDayOfWeek : @ 2, kODPolicyAttributeExpiresOnDayOfWeek : @ 6 }, kOPolicyKeyPolicy : [NSString stringWithFormat: “ % @
% @ and % @ < % “ , kODPolicyAttributeCurrentDayOfWeek, kODPolicyAttributeEnableOnDayOfWeek, kODPolicyAttributeCurrentDayOfWeek, kODPolicyAttributeExpiresOnDayOfWeek]};
See also Apple’s documentation