public static bool HasConstraint(this ISshKey aKey, Agent.KeyConstraintType aType) { return aKey.Constraints.Count(c => c.Type == aType) > 0; }